pub fn generate(rng: &SecureRandom) -> String {
    let mut bytes = [0u8; 8];

    // TODO: Don't Panic
    rng.fill(&mut bytes).unwrap();

    format!(
        "{prefix}-{password}-{digits1:02}{digits2:03}",
        prefix = GENPASS_PREFIX,
        password = String::from_utf8(encode_bubblebabble(&bytes[0..6])).unwrap(),
        digits1 = bytes[6] % 100,
        digits2 = bytes[7]
    )
}
/// Generate an easy-to-type password from a random number generator
Generate an easy-to-type password from a random number generator
Generate an easy - to - type password from a random number generator
pub fn generate(rng: &SecureRandom) -> String {
    let mut bytes = [0u8; 8];
    // TODO: Don't Panic
    rng.fill(&mut bytes).unwrap();
    format!(
        "{prefix}-{password}-{digits1:02}{digits2:03}",
        prefix = GENPASS_PREFIX,
        password = String::from_utf8(encode_bubblebabble(&bytes[0..6])).unwrap(),
        digits1 = bytes[6] % 100,
        digits2 = bytes[7]
    )
}
pub fn generate ( rng : & SecureRandom ) -> String { let mut bytes = [ 0u8 ; 8 ] ; // TODO: Don't Panic rng . fill ( & mut bytes ) . unwrap ( ) ; format ! ( " " prefix GENPASS_PREFIX password String from_utf8 ( encode_bubblebabble ( bytes [ 0 6 ] ) ) unwrap ( ) digits1 bytes [ 6 ] 100 digits2 bytes [ 7 ] ) }
Generate an easy-to-type password from a random number generator
Generate an easy - to - type password from a random number generator
rng
&SecureRandom
rng
&SecureRandom