-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Uid] Uuid v7 collisions #52338
Comments
Originally posted in ramsey/uuid#518. Reproduced same issue in Symfony. |
@fancyweb do you have an idea? |
For the record. Generating UUID v7 according to the standard (basically having smth like So the problem is in the seed mechanism introduced by @nicolas-grekas here, which was also used by @ramsey in ramsey/uuid@0ba1ffb. |
…ekas) This PR was merged into the 6.3 branch. Discussion ---------- [Uid] Fix UuidV7 collisions within the same ms | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #52338 | License | MIT Off-by-one errors... Commits ------- e3bf65b [Uid] Fix UuidV7 collisions within the same ms
Checked, it fixed the problem, thanks! |
Symfony version(s) affected
6.3.0
Description
From time to time I get UUID v7 collisions.
How to reproduce
Expected behavior
Empty
Actual output (native PHP v8.2.10, macOS Ventura v13.3.1)
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: