3 ms·
I read through the comments on the issue -- correct me if I'm wrong, but with the program they were running (generating 2000 random numbers) isn't there a 5% ch
by holtalanm 6y ago
I read through the comments on the issue -- correct me if I'm wrong, but with the program they were running (generating 2000 random numbers) isn't there a 5% chance of generating duplicates, even with RDRAND working as intended?
If that is case, maybe RDRAND shouldn't be used for uniqueness.
- dragontamer 6y agoRDRAND can output a 64-bit number. The intrinsic used is the 32-bit version of RDRAND, which is... suboptimal... for a test like this. As you've noted. Even then, RDRAND has no entropy guarantees (again: see my top comment about RDSEED vs RDRAND).