Struct nanorand::rand::chacha::ChaCha [−][src]
#[repr(C)]pub struct ChaCha<const ROUNDS: u8> { /* fields omitted */ }
Expand description
An instance of the ChaCha random number generator. Seeded from the system entropy generator when available. This generator is theoretically cryptographically secure.
Implementations
Trait Implementations
Generates a random sequence of bytes, seeding from the internal state.
Generates a random sequence of bytes, with a custom seed.
Generates a random of the specified type, seeding from the internal state.
Fill an array with the specified type.
fn generate_range<R, B>(&mut self, range: B) -> R where
R: RandomRange<Self>,
B: RangeBounds<R>,
fn generate_range<R, B>(&mut self, range: B) -> R where
R: RandomRange<Self>,
B: RangeBounds<R>,
Generates a random of the specified type, seeding from the internal state.
Auto Trait Implementations
impl<const ROUNDS: u8> RefUnwindSafe for ChaCha<ROUNDS>
impl<const ROUNDS: u8> UnwindSafe for ChaCha<ROUNDS>
Blanket Implementations
Mutably borrows from an owned value. Read more