Trait Generator
pub trait Generator
A random (block) generator
Associated Types
type Output;The output type.
For use with
rand_core::blockcode this must be[u32; _]or[u64; _].
Required Methods
fn generate(&mut self, output: &mut Self::Output)Generate a new block of
output.This must fill
outputwith random data.
Provided Methods
fn drop(&mut self, output: &mut Self::Output)Destruct the output buffer
This method is called on
Dropof theSelf::Outputbuffer. The default implementation does nothing.