use super::RustcryptoCalExtender;
use embedded_cal::Cal;
impl<Base: Cal + rand_core::TryCryptoRng> rand_core::TryCryptoRng for RustcryptoCalExtender<Base> {}
impl<Base: Cal + rand_core::TryRng> rand_core::TryRng for RustcryptoCalExtender<Base> {
type Error = Base::Error;
fn try_next_u32(&mut self) -> Result<u32, Self::Error> {
self.base.try_next_u32()
}
fn try_next_u64(&mut self) -> Result<u64, Self::Error> {
self.base.try_next_u64()
}
fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), Self::Error> {
self.base.try_fill_bytes(dst)
}
}