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

tree wide: use simple 16 byte random string for UUID #921

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

ammgws
Copy link
Collaborator

@ammgws ammgws commented Nov 9, 2020

Achieves the same purpose and allows us to reduce dependencies by just relying on the bare minimum of getrandom instead of the whole uuid crate.

This supercedes #531 which was waiting for uuid-rs/uuid#475

@ammgws ammgws added the cleanup Code refactoring and such label Nov 9, 2020
Since all we are using UUIDs for is to avoid duplicate names then we can
achieve the same thing by using a random 16 byte string rather than strictly
adhering to the UUID v4 spec (which just sets a couple of the bytes to a
known value for identification purposes). This way we can reduce dependencies
by just relying on the bare minimum of `getrandom`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code refactoring and such
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant