rust/library/std/src/sys/pal
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
..
common Reformat use declarations. 2024-07-29 08:26:52 +10:00
hermit fix(pal/hermit): deny(unsafe_op_in_unsafe_fn) 2024-08-01 12:34:43 +02:00
itron Reformat use declarations. 2024-07-29 08:26:52 +10:00
sgx Insert some blank lines. 2024-07-30 07:25:15 +10:00
solid Reformat use declarations. 2024-07-29 08:26:52 +10:00
teeos Reformat use declarations. 2024-07-29 08:26:52 +10:00
uefi std: Remove has_cpuid 2024-08-01 20:45:38 -07:00
unix std: refactor UNIX random data generation 2024-08-04 18:39:59 +02:00
unsupported Reformat use declarations. 2024-07-29 08:26:52 +10:00
wasi Reformat use declarations. 2024-07-29 08:26:52 +10:00
wasip2 Reformat use declarations. 2024-07-29 08:26:52 +10:00
wasm Reformat use declarations. 2024-07-29 08:26:52 +10:00
windows Rollup merge of #128368 - nnethercote:rustfmt-tweaks, r=cuviper 2024-08-03 11:17:44 +02:00
xous Reformat use declarations. 2024-07-29 08:26:52 +10:00
zkvm Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs android: Remove libstd hacks for unsupported Android APIs 2024-07-31 01:03:36 +00:00