Skip to main content

Entropy

Trait Entropy 

Source
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§

Source

fn fill(&mut self, buf: &mut [u8]) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§