[−][src]Struct rand_seeder::SipRng
A generator built using SipHash's primitives.
SipRng
is statistically high-quality, passing practrand tests to at
least 4 TiB. It is also reasonably fast, though not quite competitive with
the best non-cryptographic RNGs or optimised block RNGs such as ChaCha.
This implementation is fixed to use two "compression" rounds between output
values (similar to SipHash 2-4). Construction via SipHasher::into_rng
adds two extra rounds to maintain four rounds between final input
consumption and the first output, however this first result is not identical
to SipHash's result.
Although this generator is heavily based on the design of SipHash, it has not been reviewed for cryptographic strength, and thus cannot be recommended for applications requiring this property.
Trait Implementations
impl Debug for SipRng
[src]
impl Clone for SipRng
[src]
fn clone(&self) -> SipRng
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl RngCore for SipRng
[src]
fn next_u32(&mut self) -> u32
[src]
fn next_u64(&mut self) -> u64
[src]
fn fill_bytes(&mut self, dest: &mut [u8])
[src]
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>
[src]
impl SeedableRng for SipRng
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,