2 ms·
I wrote Yet Another UUID [1] for my own purposes recently as well. Mine's based on Firebase's style UIDs [2] -- they sort roughly chronologically, because oper
by heavenlyhash 11y ago
I wrote Yet Another UUID [1] for my own purposes recently as well. Mine's based on Firebase's style UIDs [2] -- they sort roughly chronologically, because operationally, I find that irritates me less. Arbitrary choice? Entirely. Regrets? None. Do I recommend it for use? Also not at all. Unless you feel like it. It's fine. I guess.
I've kind of given up on there being any purpose to a One True Spec for UUIDs. Count how many bits of entropy you want. Shove some CSPRNG into it. Call it a day.
¯\_(ツ)_/¯
(This a fine implementation, fwiw. I only mean to share my honest question as to whether there's any real utility to UUIDs-as-a-library.)
[1] https://github.com/polydawn/repeatr/blob/dd41ca72421a173b5aa14580f5d7df48df1548d0/lib/guid/guid.go https://github.com/polydawn/repeatr/blob/dd41ca72421a173b5aa...
[2] https://www.firebase.com/blog/2015-02-11-firebase-unique-identifiers.html https://www.firebase.com/blog/2015-02-11-firebase-unique-ide...
- derekcollison 11y agoI agree, was simply sharing because it was a need we had, which might be a need someone else had as well. Anyone can feel free to use it or not.