Module rand

Source
Expand description

Cryptographic pseudo-random number generation.

ring functions that generate random bytes take a &dyn SecureRandom parameter to make it clear which functions are non-deterministic.

Structs§

Random
A random value constructed from a SecureRandom that hasn’t been exposed through any safe Rust interface.
SystemRandom
A secure random number generator where the random values come directly from the operating system.

Traits§

RandomlyConstructable
A type that can be returned by ring::rand::generate().
SecureRandom
A secure random number generator.

Functions§

generate
Generate the new random value using rng.