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

Version 4 (Random) UUIDs validation bug #28

Open
rafmagana opened this issue Dec 24, 2013 · 0 comments
Open

Version 4 (Random) UUIDs validation bug #28

rafmagana opened this issue Dec 24, 2013 · 0 comments

Comments

@rafmagana
Copy link

UUIDTools::UUID.random_create does generate valid Version 4 (Random) UUIDs, but if I parse an invalid UUID like this:

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.

http://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29

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