pub struct Random;Expand description
The SP 800-90A HMAC_DRBG, seeded from the operating system.
rustls draws the client and server randoms, session identifiers and ticket nonces through this. A fresh generator per call is deliberate: the alternative is one shared instance behind a lock, which would either serialise every handshake in the process or need care about fork safety that a per-call draw does not.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Random
impl RefUnwindSafe for Random
impl Send for Random
impl Sync for Random
impl Unpin for Random
impl UnsafeUnpin for Random
impl UnwindSafe for Random
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