⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module entropy

Module entropy 

Source
Expand description

Architecture-independent hardware entropy abstractions.

Centralizes hardware entropy/random number operations so that non-arch code (particularly crypto/random.rs) does not need scattered #[cfg(target_arch)] blocks with inline assembly.

§Functions

Functions§

collect_timer_entropy
Collect 32 bytes of timer-jitter entropy.
read_timestamp
Read the hardware timestamp/cycle counter.
try_hardware_rng
Attempt to read 32 bytes from a hardware random number generator.