xoshiro256++
and xoshiro256**
?rand_pcg
crate.Math.random
apparentlyMath.random
is implemented in any specific way afaik not specified in the standard<system.h>
just to get a 64 bit integerbase/types.h
?42u
and 54u
are initstate
and initseq
respectivelyCNetMsg_Cl_StartInfo
pcg_setseq_64_srandom_r
,pcg_setseq_64_xsh_rr_32_random_r
are the functions you are looking forpcg_output_xsh_rr_64_32
is the one you are looking forpcg_setseq_64_srandom_r
is the init functionCPrng::RandomBits()
doesn't look like pcg_setseq_64_step_r
tbhsrc/pcg.rs
.PRIx64
from inttypes however clang on macOS doesn't seem to provide that despite providing a 64 bit integer typeMaskFor(unsigned int n)
wellRandomIntBelow
__builtin_clz
seems to be the answer