Function mycelium_kernel::arch::seed_rng
source · pub fn seed_rng<R>() -> Rwhere
R: SeedableRng,
Expand description
Construct a new SeedableRng
instance from all available entropy sources.
This function constructs a new seed value for an R
-typed SeedableRng
using entropy from the following sources:
Rdrand
, if it is available on this CPURdtsc
, if timestamp counters are available on this CPU- PIT channels 1, 2, and 3