nanorand::rand

Trait SeedableRng

Source
pub trait SeedableRng<const SEED_SIZE: usize, const OUTPUT: usize>: Rng<OUTPUT> {
    // Required method
    fn reseed(&mut self, seed: [u8; SEED_SIZE]);
}
Expand description

A trait that represents an RNG that can be reseeded from arbitrary bytes.

Required Methods§

Source

fn reseed(&mut self, seed: [u8; SEED_SIZE])

Re-seed the RNG with the specified bytes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SeedableRng<8, 8> for WyRand

Source§

impl SeedableRng<16, 8> for Pcg64

Source§

impl<InternalGenerator: SeedableRng<SEED_SIZE, OUTPUT>, const OUTPUT: usize, const SEED_SIZE: usize> SeedableRng<SEED_SIZE, OUTPUT> for BufferedRng<InternalGenerator, OUTPUT>

Source§

impl<const ROUNDS: u8> SeedableRng<40, 64> for ChaCha<ROUNDS>