pub struct SimpleRng(/* private fields */);Expand description
Simple LFSR-based PRNG for coding coefficients — not a CSPRNG.
Use only for RLNC coefficient generation in non-adversarial settings. For adversarial environments, inject entropy from a cryptographic RNG outside this crate. See the crate-level security warning.
Implementations§
Auto Trait Implementations§
impl Freeze for SimpleRng
impl RefUnwindSafe for SimpleRng
impl Send for SimpleRng
impl Sync for SimpleRng
impl Unpin for SimpleRng
impl UnsafeUnpin for SimpleRng
impl UnwindSafe for SimpleRng
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