3 ms·
Why would you want this? The entire point of UUIDs is I can quickly generate them knowing that they will be universally unique, I don’t need to check for their
by PaulRobinson 6y ago
Why would you want this?
The entire point of UUIDs is I can quickly generate them knowing that they will be universally unique, I don’t need to check for their existence anywhere.
This dramatically increases the likelihood of collision to the point I can almost certainly guarantee that they won’t be unique in any non-trivial context.
- flingo 6y agoWhere is the entropy going? This still has all eight bytes, from the generated UUID, and looks like it can be converted back into a UUID.
- debdut 6y agoyes, I will add an inversion, it's a bijection
- jackhalford 6y agoThe space of all uuids is larger than the space of all shakespearean uuids. So by definition you can't biject them. You may be able to on able for your subset of uuids in your project, but there is less entropy when using the latter. edit: It seems the shakespearean uuids are longer than uuids so I may be conpletely wrong
- function_seven 6y agoI skimmed the code and it looks like there’s a hole for every pigeon. Space size appears to be equal.
- moondev 6y agoPerhaps some projects are just for fun and not targeted at your specific needs?
- roadbeats 6y agoExactly. The fun aspect of programming used to be more appreciated back in the days.
- jfkebwjsbx 6y agoFun is fine outside production code.
- debdut 6y agoI am doing a project, needed to share secrets on submission and UUIDs are not cool, sharing these Shakespearean sentences is cool. Entropy is not lost, I will add an inversion. it's a pure bijection.