Skip to main content

SecureRandom

Trait SecureRandom 

Source
pub trait SecureRandom: SecureRandom {
    // Required method
    fn fill(&self, dest: &mut [u8]) -> Result<(), Unspecified>;
}
Expand description

Sealed trait, mirroring ring::rand::SecureRandom.

Required Methods§

Source

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

§Errors

Returns Unspecified if the random number generator fails.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§