Struct mersenne_twister::MT19937_64
[−]
[src]
pub struct MT19937_64 { // some fields omitted }
The 64-bit flavor of the Mersenne Twister pseudorandom number generator.
Methods
impl MT19937_64
fn new_unseeded() -> MT19937_64
Create a new Mersenne Twister random number generator using the default fixed seed.
fn recover(samples: &[u64]) -> MT19937_64
Recover the internal state of a Mersenne Twister instance from 312 consecutive outputs of the algorithm.
The returned MT19937_64
is guaranteed to identically
reproduce subsequent outputs of the RNG that was sampled. This
is why one does not use Mersenne Twister in cryptography.
Panics if the length of the slice is not exactly 312.