Skip to main content

try_generate_salt

Function try_generate_salt 

Source
pub fn try_generate_salt() -> Result<[u8; 16], Error>
Expand description

Try generating a random salt value of the recommended length using the system’s secure RNG, returning errors if they occur.

§Errors

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