












xoshiro256++ and xoshiro256**?

















rand_pcg crate.
















Math.random apparently
Math.random is implemented in any specific way afaik not specified in the standard









<system.h> just to get a 64 bit integer
base/types.h?











42u and 54u are initstate and initseq respectively







CNetMsg_Cl_StartInfo


pcg_setseq_64_srandom_r,pcg_setseq_64_xsh_rr_32_random_r are the functions you are looking for





pcg_output_xsh_rr_64_32 is the one you are looking for

pcg_setseq_64_srandom_r is the init function





CPrng::RandomBits() doesn't look like pcg_setseq_64_step_r tbh
src/pcg.rs.









PRIx64 from inttypes however clang on macOS doesn't seem to provide that despite providing a 64 bit integer type

MaskFor(unsigned int n) well


RandomIntBelow

__builtin_clz seems to be the answer









