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

Only increment v1 context when the seconds component matches #547

Merged
merged 1 commit into from Nov 1, 2021

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Nov 1, 2021

Closes #432

This adds a new_random constructor to Context that seeds it with a random initial value when the rng or fast-rng features are also available.

It also stashes the last timestamp we saw and only increments the counter if it matches.

@KodrAus KodrAus merged commit a94b12d into uuid-rs:main Nov 1, 2021
18 checks passed
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

Successfully merging this pull request may close these issues.

ClockSequence Trait Approach
1 participant