Closed dtinth closed 6 months ago
Came here to report this as I opened an issue on the uuidv7 repro as my UUIDs were showing as 1983 and they confirmed it was an issue with the uuidv7 site
Thank you both for the feedback, I am currently on vacation but should get this fixed within the next week or so
fixed with the code from this PR https://github.com/stevesimmons/uuid7/pull/2
https://github.com/RzNmKX/uuid7-flask/blob/main/flask_app/uuid7.py
The latest draft of UUIDv7 (linked from https://uuid7.com/) specifies that the first 48 bits in the UUID should be Unix epoch timestamp in milliseconds.
Example UUIDv7, should start with
01
:However, the website generates a UUIDv7 based on an earlier draft, starting with
06
.Given that this website is currently ranked first when searching for UUIDv7, I think the UUID generation algorithm should be updated.
See:
The original repo hasn’t been updated in 3 years, but a fork and a pull request that updates the generation algorithm exists: