~jeffpc/libjeffpc#37: 
uuid: consider adding support for new uuid versions

RFC9562 [1] adds uuid versions 5-8.

  • v5 is a sha1 hash of a user supplied string
  • v6 is a variant of v1 with the fields reordered to make uuid sorting produce natural ordering
  • v7 is based on unix timestamp + random padding
  • v8 is experimental/vendor-specific

It may be worth it to implement v5 and v7. v5 might be annoying because it requires SHA1 (and therefore would introduce a new dependency for libjeffpc). v7 would be easy to implement but it relies on the timestamp being monotonic which can be problematic in the real world - the RFC covers the best practices in section 6.2.

[1] https://www.rfc-editor.org/rfc/rfc9562.html

Status
REPORTED
Submitter
~jeffpc
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
feature