Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[10.x] Stick with ordered uuid #44311

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

Merged
merged 3 commits into from
Sep 26, 2022
Merged

[10.x] Stick with ordered uuid #44311

merged 3 commits into from
Sep 26, 2022

Conversation

tillkruss
Copy link
Contributor

@tillkruss tillkruss commented Sep 26, 2022

This is a follow-up to #44210.

  • Stick with orderedUuid() in HasUuids::newUniqueId()
  • Revert changed from v4 to v7 in Str::uuid()

IMO it makes no sense to change the default Str::uuid() to v7, which will always reveal the timestamp (minor data leak), especially since the Str::orderedUuid() still exists.

I'd expect Str::uuid() to be fully random and not an alias of Str::orderedUuid().

@tillkruss tillkruss marked this pull request as ready for review September 26, 2022 20:24
@taylorotwell
Copy link
Member

I basically agree with this.

@taylorotwell taylorotwell merged commit ca7970e into master Sep 26, 2022
@taylorotwell taylorotwell deleted the tillkruss-patch-1 branch September 26, 2022 21:05
@driesvints
Copy link
Member

Thanks @tillkruss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants