pub struct SimRng { /* private fields */ }Expand description
A deterministic pseudo-random generator.
This is xorshift64*: three shifts and a multiply, no state beyond a u64, and a
period long enough for any test. It is not cryptographically secure and must never
be used for anything but simulation — which is why it lives here and not in a module a
real node would reach for.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SimRng
impl !RefUnwindSafe for SimRng
impl !Sync for SimRng
impl Forget for SimRng
impl Move for SimRng
impl Send for SimRng
impl Unpin for SimRng
impl UnsafeUnpin for SimRng
impl UnwindSafe for SimRng
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