-
-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uuid v7 collisions #518
Comments
Running same code with |
The new code in |
Yes, done. |
See symfony/symfony#52367 for the fix |
Thanks, @nicolas-grekas! |
I will do a PR. |
@ramsey @nicolas-grekas Hi! Have a question about I need to replace 4-5 chars after generation uuid v7 with my specific characters (servers id or smth else). |
@fannyfan414 , you can use UUID v8, it allows to put arbitrary content. |
I would recommend using UUIDv8 for your use-case, by the way. It's intended for custom layouts like the one you're using. To minimize chance of collision, I would probably place the server ID in the bytes to the far right of the UUID layout. |
Description
From time to time I get v7 collisions. I also noticed that since 0ba1ffb uuids of this version do not differ much in the random part, maybe, that's the reason?
Steps to reproduce
Expected behavior
Empty output
Screenshots or output
Environment details
The text was updated successfully, but these errors were encountered: