4 ms·
A sufficiently large and properly generated random number is as unlikely or less likely to collide than a sufficiently large hash. However, using the random nu
by gridlockd 7y ago
A sufficiently large and properly generated random number is as unlikely or less likely to collide than a sufficiently large hash.
However, using the random number is strictly simpler to implement, therefore it wins out from an engineering standpoint, unless you do not have access to proper RNG.