Expand description
Random number generators.
Pseudorandom number generators
These generators implement fast PRNG which are suitable for normal use in non-cryptography applications.
-
SplitMix64
Rng:Simple 64-bit state generator uses wrapping addition, wrapping multiplication, XOR and shifts.
-
Xoshiro256
Rng:Kindly taken from Sebastiano Vigna’s excellent PRNG shootout article.
Cryptographically secure generators
These generators implement suitable CSPRNG implementations without calling out to the system or hardware directly.
-
ChaCha20
Rng:Daniel J. Bernstein’s ChaCha20 adapted as a deterministic random number generator.
Structs
Daniel J. Bernstein’s ChaCha20 adapted as a deterministic random number generator.
Random number generator mock.
An RNG that reads random bytes straight from any type supporting
std::io::Read
, for example files.Java 8’s SplittableRandom generator.
This is xoshiro256 1.0, one of our all-purpose, rock-solid generators.
Traits
Random number generator interface.
Constructors for deterministic random number generators.
Functions
Provides cryptographically secure entropy.