pub struct RingRandom;Expand description
Ring’s operating-system-backed secure random source.
Trait Implementations§
Source§impl Default for RingRandom
impl Default for RingRandom
Source§impl RTCRandom for RingRandom
impl RTCRandom for RingRandom
Source§fn fill(&self, output: &mut [u8]) -> Result<(), CryptoError>
fn fill(&self, output: &mut [u8]) -> Result<(), CryptoError>
Fills all of
output with random bytes.Source§fn fill_secret(&self, output: &mut [u8]) -> Result<(), CryptoError>
fn fill_secret(&self, output: &mut [u8]) -> Result<(), CryptoError>
Fills all of
output with random bytes that become a secret key (a cookie secret, a
ticket key), from a source that keeps no copy of them. Read moreAuto Trait Implementations§
impl Forget for RingRandom
impl Freeze for RingRandom
impl Move for RingRandom
impl RefUnwindSafe for RingRandom
impl Send for RingRandom
impl Sync for RingRandom
impl Unpin for RingRandom
impl UnsafeUnpin for RingRandom
impl UnwindSafe for RingRandom
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