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

std: refactor UNIX random data generation #128655

Merged
merged 2 commits into from
Aug 13, 2024

Commits on Aug 4, 2024

  1. std: refactor UNIX random data generation

    This PR makes a number of changes to the UNIX randomness implementation:
    * Use `io::Error` for centralized error handling
    * Move the file-fallback logic out of the `getrandom`-specific module
    * Stop redefining the syscalls on macOS and DragonFly, they have appeared in `libc`
    * Add a `OnceLock` to cache the random device file descriptor
    joboet committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    207ee73 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. std: use /scheme/rand on Redox

    joboet committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    99c0d76 View commit details
    Browse the repository at this point in the history