pub struct RngConfig {
pub min_init_cycles: u32,
pub max_init_cycles: u32,
pub entropy_sources: EntropySources,
}
Expand description
Configuration values for seeding the PRNG
Fields§
§min_init_cycles: u32
Minimum number of randomly generated words to discard
Note: If this is less than 1024, 1024 numbers will be discarded
max_init_cycles: u32
Maximum number of randomly generated words to discard
Note: This must be greater than min_init_cycles
, or the
values will be swapped
entropy_sources: EntropySources
The sources to use for runtime entropy gathering for the initial seed value. Options include:
- Device Info, such as serial number and die position
- Internal Temperature Sensor
- Internal VRef measurement
Trait Implementations§
impl Copy for RngConfig
Auto Trait Implementations§
impl Freeze for RngConfig
impl RefUnwindSafe for RngConfig
impl Send for RngConfig
impl Sync for RngConfig
impl Unpin for RngConfig
impl UnwindSafe for RngConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more