[][src]Struct rand::rngs::adapter::reseeding::ReseedingCore

struct ReseedingCore<R, Rsdr> {
    inner: R,
    reseeder: Rsdr,
    threshold: i64,
    bytes_until_reseed: i64,
}

Fields

Methods

impl<R, Rsdr> ReseedingCore<R, Rsdr> where
    R: BlockRngCore + SeedableRng,
    Rsdr: RngCore
[src]

Create a new ReseedingCore with the given parameters.

Arguments

  • rng: the random number generator to use.
  • threshold: the number of generated bytes after which to reseed the RNG.
  • reseeder: the RNG to use for reseeding.

Reseed the internal PRNG.

Trait Implementations

impl<R: Debug, Rsdr: Debug> Debug for ReseedingCore<R, Rsdr>
[src]

Formats the value using the given formatter. Read more

impl<R, Rsdr> BlockRngCore for ReseedingCore<R, Rsdr> where
    R: BlockRngCore + SeedableRng,
    Rsdr: RngCore
[src]

Results element type, e.g. u32.

Results type. This is the 'block' an RNG implementing BlockRngCore generates, which will usually be an array like [u32; 16]. Read more

Generate a new block of results.

impl<R, Rsdr> Clone for ReseedingCore<R, Rsdr> where
    R: BlockRngCore + SeedableRng + Clone,
    Rsdr: RngCore + Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R, Rsdr> CryptoRng for ReseedingCore<R, Rsdr> where
    R: BlockRngCore + SeedableRng + CryptoRng,
    Rsdr: RngCore + CryptoRng
[src]

Auto Trait Implementations

impl<R, Rsdr> Send for ReseedingCore<R, Rsdr> where
    R: Send,
    Rsdr: Send

impl<R, Rsdr> Sync for ReseedingCore<R, Rsdr> where
    R: Sync,
    Rsdr: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more