Struct HasherRng
pub struct HasherRng<H = RandomState> { /* private fields */ }
A Rng implementation that uses a Hasher to generate the random
values. The implementation uses an internal counter to pass to the hasher
for each iteration of Rng::next_u64.
Default
This hasher has a default type of RandomState which just uses the
libstd method of getting a random u64.
Implementations
impl HasherRng
fn new() -> SelfCreate a new default
HasherRng.
impl<H> HasherRng<H>
fn with_hasher(hasher: H) -> SelfCreate a new
HasherRngwith the provided hasher.
Trait Implementations
impl Default for HasherRng
fn default() -> Self
impl<H> Rng for HasherRng<H>
where
H: BuildHasher,
fn next_u64(&mut self) -> u64
impl<H: Clone> Clone for HasherRng<H>
fn clone(&self) -> Self
impl<H: Debug> Debug for HasherRng<H>
fn fmt(&self, f: &mut Formatter<'_>) -> Result