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

Add support for using rand for rng #545

Merged
merged 3 commits into from
Nov 1, 2021
Merged

Add support for using rand for rng #545

merged 3 commits into from
Nov 1, 2021

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Nov 1, 2021

Closes #529

This adds a fast-rng feature that can be used to generate v4 UUIDs much faster than getrandom (which just falls back to OS APIs).

The quality of the random data is no less suitable with fast-rng than the fallback. It just requires more dependencies to build, and some users of uuid are very dependency-averse.

@KodrAus KodrAus merged commit 45f2f67 into uuid-rs:main Nov 1, 2021
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.

Creating UUIDv4 is very slow
1 participant