We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
UUIDTools::UUID.random_create does generate valid Version 4 (Random) UUIDs, but if I parse an invalid UUID like this:
UUIDTools::UUID.random_create
uuid = UUIDTools::UUID.parse('4e062a1e-31bd-4dc2-76b8-bf8c207c52d4')
then uuid.valid? returns true and it should return false since the third group (76b8) starts with a 7, not with, a, b, 8 or 9.
uuid.valid?
true
false
http://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29
The text was updated successfully, but these errors were encountered:
No branches or pull requests
UUIDTools::UUID.random_create
does generate valid Version 4 (Random) UUIDs, but if I parse an invalid UUID like this:then
uuid.valid?
returnstrue
and it should returnfalse
since the third group (76b8) starts with a 7, not with, a, b, 8 or 9.http://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29
The text was updated successfully, but these errors were encountered: