pub trait Random_Engine {
// Required method
fn harvest(&mut self, sugar: u64, message: &[u64; 8]) -> [u64; 8];
// Provided method
fn sow_array(&mut self, message: &[u64; 8]) { ... }
}
Expand description
The supporting trait for Random_Generic
Random_Generic
uses whatever object that has this trait for pseudo-random
number generator engine. So, if you plug in any hash algorithm that has
this trait to Random_Generic
, Random_Generic
will use the object
as its pseudo-random number generator engine.
You will hardly use the object that has this trait except the case
that you use it in order to plug it in the Random_Generic
.