embedded_cal_rustcrypto/
rng.rs1use super::RustcryptoCalExtender;
5use embedded_cal::Cal;
6
7impl<Base: Cal + rand_core::TryCryptoRng> rand_core::TryCryptoRng for RustcryptoCalExtender<Base> {}
13
14impl<Base: Cal + rand_core::TryRng> rand_core::TryRng for RustcryptoCalExtender<Base> {
15 type Error = Base::Error;
16
17 fn try_next_u32(&mut self) -> Result<u32, Self::Error> {
18 self.base.try_next_u32()
19 }
20
21 fn try_next_u64(&mut self) -> Result<u64, Self::Error> {
22 self.base.try_next_u64()
23 }
24
25 fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), Self::Error> {
26 self.base.try_fill_bytes(dst)
27 }
28}