Trait rand::SeedableRngUnstable [-] [+] [src]

pub trait SeedableRng<Seed>: Rng {
    fn reseed(&mut self, Seed);
    fn from_seed(seed: Seed) -> Self;
}

A random number generator that can be explicitly seeded to produce the same stream of randomness multiple times.

Required Methods

fn reseed(&mut self, Seed)

Reseed an RNG with the given seed.

fn from_seed(seed: Seed) -> Self

Create a new RNG with the given seed.

Implementors