docbox-management 0.4.0

Management core library for managing docbox used by the cli and other tools
Documentation
1
2
3
4
5
6
7
8
9
10
use rand::{
    distributions::{Alphanumeric, DistString},
    rngs::OsRng,
};

/// Generates a random password
pub fn random_password(length: usize) -> String {
    let mut rng = OsRng;
    Alphanumeric.sample_string(&mut rng, length)
}