aws_lc_rs::rand

Trait SecureRandom

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

A secure random number generator.

Required Methods§

Source

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

Fills dest with random bytes.

§Errors

error::Unspecified if unable to fill dest.

Implementors§

Source§

impl<T> SecureRandom for T
where T: SecureRandom,