Trait nanorand::rand::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.

Object Safety§

This trait is not object safe.

Implementors§