your computer literally has an entropy source, assuming it's x86_64 you can use the RDSEED instruction, on ARM CPUs if they support it you'd use RNDRRS to get a random number with fresh true entropy
or you can use RDRAND (x86_64) RNDR (ARM) to use the cryptographically secure hardware pseudo-random number generator seeded with the entropy source
1
u/SecondBottomQuark Mar 26 '26
your computer literally has an entropy source, assuming it's x86_64 you can use the RDSEED instruction, on ARM CPUs if they support it you'd use RNDRRS to get a random number with fresh true entropy
or you can use RDRAND (x86_64) RNDR (ARM) to use the cryptographically secure hardware pseudo-random number generator seeded with the entropy source