Expand description
Cryptographically secure random number generator.
On Unix systems this reads from /dev/urandom
; on Windows it uses the
system’s preferred CNG provider.
use rustframe::random::{crypto_rng, Rng};
let mut rng = crypto_rng();
let _v = rng.next_u64();
Structs§
Functions§
- crypto_
rng - Convenience constructor for
CryptoRng
.