pub trait PrgBytes: Sync {
// Required method
fn gen(&self, buf: &mut [u8], src: &[u8]);
}Expand description
Pseudorandom generator to generate bytes
The output and input sizes are related with the sizes set by users. They should be checked by the implementation.
Requires Sync for multi-threading, which should be still easy for even single-threaded
NOTICE: The trait with the impls still has performance issues