[][src]Struct rand_seeder::SipRng

pub struct SipRng { /* fields omitted */ }

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 Clone for SipRng[src]

impl Debug for SipRng[src]

impl RngCore for SipRng[src]

impl SeedableRng for SipRng[src]

type Seed = [u8; 32]

Seed type, which is restricted to types mutably-dereferencable as u8 arrays (we recommend [u8; N] for some N). Read more

Auto Trait Implementations

impl Send for SipRng

impl Sync for SipRng

impl Unpin for SipRng

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.