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

x-wing: use rand::rngs::OsRng in code example #98

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

tarcieri
Copy link
Member

This is the most conservative choice for a random number generator for keygen, which is a thin wrapper for the getrandom crate, which gets randomness directly from the OS.

Also removes superfluous newlines in the example, and makes the imported traits explicit so the code example is complete.

This is the most conservative choice for a random number generator for
keygen, which is a thin wrapper for the `getrandom` crate, which gets
randomness directly from the OS.

Also removes superfluous newlines in the example, and makes the imported
traits explicit so the code example is complete.
@tarcieri tarcieri merged commit de49bf1 into master Jan 21, 2025
13 checks passed
@tarcieri tarcieri deleted the x-wing/use-osrng-in-example branch January 21, 2025 20:39
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.

1 participant