Skip to main content

RTCRandom

Trait RTCRandom 

Source
pub trait RTCRandom: Send + Sync {
    // Required method
    fn fill(&self, output: &mut [u8]) -> Result<(), CryptoError>;
}
Expand description

A cryptographically secure random byte generator.

Required Methods§

Source

fn fill(&self, output: &mut [u8]) -> Result<(), CryptoError>

Fills all of output with random bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§