1
Fork 0
rust/library/std
joboet 207ee73b7a
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
2024-08-04 18:39:59 +02:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src std: refactor UNIX random data generation 2024-08-04 18:39:59 +02:00
tests Reformat use declarations. 2024-07-29 08:26:52 +10:00
build.rs Match LLVM ABI in extern "C" functions for f128 on Windows 2024-07-30 20:23:33 +01:00
Cargo.toml Auto merge of #125016 - nicholasbishop:bishop-cb-112, r=tgross35 2024-07-29 07:41:33 +00:00