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.

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>