Skip to main content

generate

Function generate 

pub fn generate<T>(rng: &dyn SecureRandom) -> Result<Random<T>, Unspecified>
Available on crate features crypto and aws-lc only.
Expand description

Generate the new random value using rng.

§Errors

error::Unspecified if unable to fill buffer.