4 ms·
4 billion IDs = 32 bit = Math.pow(2,32). For a 50% chance of collision you need Math.pow(2,32/2) calls to your ID generating function which is 65536 calls. An
by jorangreef 12y ago
4 billion IDs = 32 bit = Math.pow(2,32).
For a 50% chance of collision you need Math.pow(2,32/2) calls to your ID generating function which is 65536 calls.
And that's just a 50% chance. Even a 1% chance is too much (for which you would need much less than 65536 calls).
I doubt "IBM, Google or Microsoft" are using 32bit UUIDs.
"4 billion IDs is likely Unique within an organization"
I don't think it's unique within any organization.