pub fn generate_salt<R: CryptoRng + ?Sized>(
rng: &mut R,
len: usize,
) -> Result<ZeroizingBytes, Error>Expand description
Generate a salt using a caller-owned cryptographic randomness source.
Randomness failures are returned to the caller; this function never falls back to operating-system entropy or deterministic bytes.