ring::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.

Implementors§

Source§

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