5 ms·
That's only 120 bits of entropy, which means that you'll get a collision after generating ~ 2^60 IDs. Ok, maybe you're not worried about that scale; but I norm
by cperciva 6y ago
That's only 120 bits of entropy, which means that you'll get a collision after generating ~ 2^60 IDs.
Ok, maybe you're not worried about that scale; but I normally recommend 256-bit IDs in order to make sure that you don't need to worry about that possibility.