pub trait Rng:
Send
+ Sync
+ 'static {
// Required method
fn next_u64(&mut self) -> u64;
// Provided methods
fn next_f64(&mut self) -> f64 { ... }
fn next_range(&mut self, range: Range<u64>) -> u64 { ... }
}
Expand description
A simple PRNG trait for use within middleware.