diff options
| author | joboet <jonasboettiger@icloud.com> | 2024-08-04 18:34:04 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2024-08-04 18:39:59 +0200 |
| commit | 207ee73b7afa40a6e8adb683daef454a523bd143 (patch) | |
| tree | 1f28be64ee52625c6b4cff5260e5d4365c65fcec /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | ebd08d8ed5c8904de8700def78adc1dbd5727684 (diff) | |
| download | rust-207ee73b7afa40a6e8adb683daef454a523bd143.tar.gz rust-207ee73b7afa40a6e8adb683daef454a523bd143.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
