Skip to main content

rng

Function rng 

pub fn rng() -> impl CryptoRng
Expand description

Gets the default cryptographically secure random number generator.

WARNING On debug builds with the fixed-rng feature enabled during compilation, this function will return an RNG with a fixed seed, which is NOT SECURE! This is reserved for deterministic testing.