pub trait RandomSource {
// Required method
fn fill_bytes(&mut self, bytes: &mut [u8]);
}
🔬This is a nightly-only experimental API. (
random
#130703)Expand description
A source of randomness.
Required Methods§
Sourcefn fill_bytes(&mut self, bytes: &mut [u8])
🔬This is a nightly-only experimental API. (random
#130703)
fn fill_bytes(&mut self, bytes: &mut [u8])
random
#130703)Fills bytes
with random bytes.