Struct rand::rngs::StdRng [−][src]
pub struct StdRng(_);
This is supported on crate feature
std_rng only.Expand description
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 is the ChaCha block cipher with 12 rounds. Please see this relevant rand issue for the discussion. This may change as new evidence of cipher security and performance becomes available.
The algorithm is deterministic but should not be considered reproducible due to dependence on configuration and possible replacement in future library versions. For a secure reproducible generator, we recommend use of the rand_chacha crate directly.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StdRngimpl UnwindSafe for StdRngBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V