pub struct OsEntropy;Expand description
The system entropy source.
use ic_core::{entropy::OsEntropy, traits::RandomSource};
let mut seed = [0u8; 48];
OsEntropy.fill(&mut seed).expect("OS entropy unavailable");Trait Implementations§
impl Copy for OsEntropy
Auto Trait Implementations§
impl Freeze for OsEntropy
impl RefUnwindSafe for OsEntropy
impl Send for OsEntropy
impl Sync for OsEntropy
impl Unpin for OsEntropy
impl UnsafeUnpin for OsEntropy
impl UnwindSafe for OsEntropy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more