pub fn random_salt(rng: &SecureRandom) -> Result<[u8; RANDOM_SALT_SIZE]> {
    let mut salt = [0u8; RANDOM_SALT_SIZE];
    rng.fill(&mut salt)?;
    Ok(salt)
}
/// Generate a random salt to use with a password
Generate a random salt to use with a password
Generate a random salt to use with a password
pub fn random_salt(rng: &SecureRandom) -> Result<[u8; RANDOM_SALT_SIZE]> {
    let mut salt = [0u8; RANDOM_SALT_SIZE];
    rng.fill(&mut salt)?;
    Ok(salt)
}
pub fn random_salt ( rng : & SecureRandom ) -> Result < [ u8 ; RANDOM_SALT_SIZE ] > { let mut salt = [ 0u8 ; RANDOM_SALT_SIZE ] ; rng . fill ( & mut salt ) ? ; Ok ( salt ) }
Generate a random salt to use with a password
Generate a random salt to use with a password
rng
&SecureRandom
rng
&SecureRandom