Closed oittaa closed 1 year ago
Oh sorry, I didn't notice b01
part for some reason. The following works as expected.
>>> hex(0x8C4DC0C0C07398F | 1 << 60 | 2 << 62 | 0xCC3 << 62 + 2 | 0x7 << 62 + 2 + 12 | 0x17F22E279B0 << 62 + 2 + 12 + 4)
'0x17f22e279b07cc398c4dc0c0c07398f'
https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis#appendix-C.6
There might be a typo in final UUIDv7 test vector.
I think it actually yields 017F22E2-79B0-7CC3-88C4-DC0C0C07398F.
Here's how I generated it simply from Python command line.
For example the version 6 works as expected and matches the result
1EC9414C-232A-6B00-B3C8-9E6BDECED846
.