pub trait Random {
// Required methods
unsafe fn context(&mut self) -> *mut c_void;
unsafe extern "C" fn random_impl(
ctx: *mut c_void,
length: size_t,
dst: *mut u8
);
// Provided method
fn random(&mut self, buf: &mut [u8]) { ... }
}
Expand description
A cryptographic random number generator.