embassy-rp: impl rand_core::CryptoRng for Trng

Per discussion in https://github.com/embassy-rs/embassy/pull/3338/files#r2040704590
the Trng implementation satisfies the requirements for CryptoRng,
so it is reasonable to implement this marker trait.
This commit is contained in:
Wez Furlong
2025-04-14 19:22:33 -07:00
parent dd787c3727
commit a606a1a45a

View File

@@ -368,6 +368,9 @@ impl<'d, T: Instance> rand_core::RngCore for Trng<'d, T> {
Ok(())
}
}
impl<'d, T: Instance> rand_core::CryptoRng for Trng<'d, T> {}
/// TRNG interrupt handler.
pub struct InterruptHandler<T: Instance> {
_trng: PhantomData<T>,