pub struct ContractPrng {
pub rng: ChaChaRng,
}
Fields§
§rng: ChaChaRng
Implementations§
Trait Implementations§
Source§impl RngCore for ContractPrng
impl RngCore for ContractPrng
Source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill
dest
with random data. Read moreimpl CryptoRng for ContractPrng
Auto Trait Implementations§
impl Freeze for ContractPrng
impl RefUnwindSafe for ContractPrng
impl Send for ContractPrng
impl Sync for ContractPrng
impl Unpin for ContractPrng
impl UnwindSafe for ContractPrng
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
Source§impl<T> CryptoRngCore for T
impl<T> CryptoRngCore for T
Source§fn as_rngcore(&mut self) -> &mut dyn RngCore
fn as_rngcore(&mut self) -> &mut dyn RngCore
Upcast to an
RngCore
trait object.