pub fn csprng() -> Random<impl SecureRng + Clone> ⓘ
Expand description
Creates a new cryptographically secure PRNG.
The generator is seeded securely from the system entropy source.
§Examples
let mut rand = urandom::csprng();
let value: i32 = rand.next();