Skip to main content

generate_salt

Function generate_salt 

Source
pub fn generate_salt() -> [u8; 16]
Expand description

Generate a random salt value of the recommended length using the system’s secure RNG.

§Panics

If the system’s secure RNG experiences an internal failure.