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

Uuid::generate( 4 ) produces a uuid4 without it's rfc defined version information #66

Open
tebruno99 opened this issue Nov 5, 2020 · 0 comments

Comments

@tebruno99
Copy link

tebruno99 commented Nov 5, 2020

I've been troubleshooting parts our our application and came across uuid's that I believe do not have their RFC4122 version information.

Uuid::generate( 4 )->string

Example:
14326a6c-184f-11ea-9e97-06aad2cae86c

A version 4 UUID is defined in RFC 4122: 128 randomly-generated bits with six bits at certain positions set to particular values.
the four most significant bits of the 7th byte to 0100'B, so the high nibble is "4"
set the two most significant bits of the 9th byte to 10'B, so the high nibble will be one of "8", "9", "A", or "B"

https://www.cryptosys.net/pki/uuid-rfc4122.html
https://tools.ietf.org/html/rfc4122#section-4.1.3

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

No branches or pull requests

1 participant