Expand description
Random number generators and adapters.
This corresponds to rand::rngs.
Modules§
Structs§
- CapRng
- The type returned by
thread_rng, essentially just a reference to a PRNG in memory. - OsRng
- A random number generator that retrieves randomness from the operating system.
- Small
Rng - A small-state, fast non-crypto PRNG
- StdRng
- The standard RNG. The PRNG algorithm in
StdRngis chosen to be efficient on the current platform, to be statistically strong and unpredictable (meaning a cryptographically secure PRNG).