2 ms·
Doing that loses the benefits of UUIDs. You can get duplicate IDs and they can be guessable.
by treis 6y ago
Doing that loses the benefits of UUIDs. You can get duplicate IDs and they can be guessable.
- Sohcahtoa82 6y agoDuplicate IDs shouldn't happen unless you have a bug. Them being guessable shouldn't be an issue if you have proper access controls. ...which means that not being random opens you up to potential bugs and security issues... I think I changed my own mind while typing this and I agree with you.
- treis 6y ago> Duplicate IDs shouldn't happen unless you have a bug. One of the benefits of UUIDs is that you don't have to check for duplicate IDs since the chance of generating the same UUID twice is effectively 0. If you use a system with less randomness then you do have to implement a duplicate check. Which isn't practical when you're working at large scale.