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

Use rand instead of getrandom for IDs #614

Merged
merged 2 commits into from Sep 14, 2023
Merged

Commits on Sep 14, 2023

  1. Use rand instead of getrandom for IDs

    The `getrandom` crate uses syscalls to get *true* randomness from the OS.
    We do not need that high quality of randomness, we do not even need cryptographically secure randomness.
    
    This switches to the `rand` crate which uses a reseeding PRNG which is still cryptographically secure though.
    
    This is much faster, and we can switch to an even simpler PRNG if it is not fast enough still.
    Swatinem committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    7785fd0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abc0ca6 View commit details
    Browse the repository at this point in the history