Skip to main content

Rng

Trait Rng 

Source
pub trait Rng: Send + Sync {
    // Required method
    fn fill_bytes(&self, buf: &mut [u8]);
}
Expand description

A source of random bytes for identifiers (never key material; see the module docs).

Required Methods§

Source

fn fill_bytes(&self, buf: &mut [u8])

Fill buf with random bytes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§