macro_rules! impl_try_crypto_rng_from_crypto_rng { ($t:ty) => { ... }; }
Expand description
Implement TryCryptoRng
and TryRngCore
for a type implementing CryptoRng
.
Ideally, rand_core
would define blanket impls for this, but they conflict with blanket impls
for &mut R
and Box<R>
, so until specialziation is stabilized, implementer crates
have to implement TryRngCore
and TryCryptoRng
directly.