pub struct MockEntropy { /* private fields */ }Expand description
Simple deterministic RNG for tests. Uses xorshift64* seeded from a
constructor argument. Not cryptographically secure — production
drivers must implement Entropy against a real HW-RNG.
Implementations§
Trait Implementations§
Source§impl Debug for MockEntropy
impl Debug for MockEntropy
Auto Trait Implementations§
impl Freeze for MockEntropy
impl RefUnwindSafe for MockEntropy
impl Send for MockEntropy
impl Sync for MockEntropy
impl Unpin for MockEntropy
impl UnsafeUnpin for MockEntropy
impl UnwindSafe for MockEntropy
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