pub trait Rng {
// 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 tower middleware.