Trait classic_mceliece_rust::RNGState
source · [−]pub trait RNGState {
fn randombytes(&mut self, x: &mut [u8]) -> Result<(), Box<dyn Error>>;
fn randombytes_init(&mut self, entropy_input: [u8; 48]);
}
Expand description
Trait requiring primitives to generate pseudo-random numbers.
AesState
is an object implementing this trait.
Required Methods
Fill the buffer x
with pseudo-random bytes resulting from the
RNG run updating the RNG state
sourcefn randombytes_init(&mut self, entropy_input: [u8; 48])
fn randombytes_init(&mut self, entropy_input: [u8; 48])
Initialize/reset the RNG state based on the seed provided as entropy_input