Function hal_x86_64::cpu::entropy::seed_rng
source · pub fn seed_rng<R: SeedableRng>() -> R
Available on crate feature
rand_core
only.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