Skip to content
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

Generate uuid version 6? #228

Open
mikemix opened this Issue May 16, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@mikemix
Copy link

mikemix commented May 16, 2018

@ramsey

This comment has been minimized.

Copy link
Owner

ramsey commented May 16, 2018

I’m interested in it, but I’m waiting to see if they will put it through the formal IETF RFC process. I’m not going to adopt a v6 that could potentially change in the future because of competing implementations.

@mikemix

This comment has been minimized.

Copy link
Author

mikemix commented May 16, 2018

Sure thing :( Check this out https://github.com/mikemix/php-uuid-v6

@ramsey

This comment has been minimized.

Copy link
Owner

ramsey commented May 16, 2018

That's cool. I was going to say it should be fairly easy to do in terms of extending this library for your own purposes, but @mikemix already has. 😄

I'll gladly add v6 to this official library if and when it becomes an IETF standard. Until there is a community effort to codify a version 6 UUID, encoding it with "6" in the version field will lead to interoperability issues, and I don't want this library to add to the confusion.

@ramsey

This comment has been minimized.

Copy link
Owner

ramsey commented May 16, 2018

Just be aware: if you use "version 6" UUIDs now and a standard comes along that is even slightly different in positions of bytes, the UUIDs you generate now will be incompatible with the standard.

@ramsey

This comment has been minimized.

Copy link
Owner

ramsey commented May 16, 2018

I left a comment on the version 6 proposal page: http://disq.us/p/1sjxmaj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.