pub struct SharedEntropy<E> { /* private fields */ }Expand description
Cloneable, single-threaded access to one entropy source.
Portable endpoint compositions use this when several independently owned protocol components must draw from the same hardware RNG. Calls remain serialized and no output is replayed or copied.
Implementations§
Trait Implementations§
Source§fn fill_bytes(&mut self, output: &mut [u8]) -> Result<(), EntropyError>
fn fill_bytes(&mut self, output: &mut [u8]) -> Result<(), EntropyError>
Fills
output with random bytes.Auto Trait Implementations§
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