Trait std::rand::SeedableRng
[−]
[src]
pub trait SeedableRng<Seed>: Rng { fn reseed(&mut self, Seed); fn from_seed(seed: Seed) -> Self; }
Unstable (
rand
): use rand
from crates.io
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)
Unstable (
rand
): use rand
from crates.io
Reseed an RNG with the given seed.
fn from_seed(seed: Seed) -> Self
Unstable (
rand
): use rand
from crates.io
Create a new RNG with the given seed.
Implementors
impl<'a> SeedableRng<&'a [u32]> for IsaacRng
impl<'a> SeedableRng<&'a [u64]> for Isaac64Rng
impl<'a> SeedableRng<&'a [u32]> for ChaChaRng
impl<S, R, Rsdr> SeedableRng<(Rsdr, S)> for ReseedingRng<R, Rsdr> where Rsdr: Reseeder<R> + Default, R: SeedableRng<S>
impl SeedableRng<[u32; 4]> for XorShiftRng