Struct rand::rngs::StdRng[][src]

pub struct StdRng(_);

The standard RNG. The PRNG algorithm in StdRng is chosen to be efficient on the current platform, to be statistically strong and unpredictable (meaning a cryptographically secure PRNG).

The current algorithm used on all platforms is HC-128.

Reproducibility of output from this generator is however not required, thus future library versions may use a different internal generator with different output. Further, this generator may not be portable and can produce different output depending on the architecture. If you require reproducible output, use a named RNG, for example ChaChaRng.

Trait Implementations

impl Clone for StdRng
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StdRng
[src]

Formats the value using the given formatter. Read more

impl RngCore for StdRng
[src]

Return the next random u32. Read more

Return the next random u64. Read more

Fill dest with random data. Read more

Fill dest entirely with random data. Read more

impl SeedableRng for StdRng
[src]

Seed type, which is restricted to types mutably-dereferencable as u8 arrays (we recommend [u8; N] for some N). Read more

Create a new PRNG using the given seed. Read more

Create a new PRNG seeded from another Rng. Read more

Create a new PRNG using a u64 seed. Read more

impl CryptoRng for StdRng
[src]

Auto Trait Implementations

impl Send for StdRng

impl Sync for StdRng