Skip to content

function random_init() random

Initializes the random number generator state using the CPU cycle counter.

This variant seeds the generator using the result of KFR_builtin_readcyclecounter(), ensuring variability across executions. It is only available when KFR_DISABLE_READCYCLECOUNTER is not defined.

Returns
A new random_state initialized with cycle counter entropy.

Defined at base/random_bits.hpp:101