pub trait Entropy {
type Error: Debug;
// Required method
fn fill(&mut self, buf: &mut [u8]) -> Result<(), Self::Error>;
}Expand description
Hardware random number generator. Used by tf-core-no-std
callers that need fresh nonces / packet IDs without pulling in
getrandom (which lacks a default backend on bare metal).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".