Module rand

Source
Expand description

RNG algorithms.

Re-exports§

pub use chacha::ChaCha;
pub use chacha::ChaCha12;
pub use chacha::ChaCha20;
pub use chacha::ChaCha8;
pub use pcg64::Pcg64;
pub use wyrand::WyRand;

Modules§

chacha
Implementation of the ChaCha CSPRNG algorithm. More details can be seen at https://en.wikipedia.org/wiki/Salsa20
pcg64
Implementation of the Pcg64 PRNG algorithm. More details can be seen at https://www.pcg-random.org/index.html
wyrand
Implementation of the wyrand PRNG algorithm. More details can be seen at https://github.com/wangyi-fudan/wyhash

Traits§

Rng
A trait that represents a random number generator.
SeedableRng
A trait that represents an RNG that can be reseeded from arbitrary bytes.