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

Time based generator with Randomized Node #25

Closed
johnlcox opened this issue Sep 28, 2017 · 3 comments
Closed

Time based generator with Randomized Node #25

johnlcox opened this issue Sep 28, 2017 · 3 comments

Comments

@johnlcox
Copy link

Would you take a pull request for an additional generator implementation that generates v1 UUIDs but with the node portion replaced with random bits as per section 4.5 of the RFC?

@Tsudico
Copy link

Tsudico commented Oct 7, 2017

If you look into EthernetAddress.constructMulticastAddress() it uses a random node for the multicast address. That can be passed into the Timebased generator for a random node time based UUID.

@cowtowncoder
Copy link
Owner

What @Tsudico said. But if that is not sufficient, I would be open to PR as well.

@johnlcox
Copy link
Author

Thanks. I think this should work.

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

3 participants