Skip to content

Commit c84c158

Browse files
authored
Unrolled build for rust-lang#128655
Rollup merge of rust-lang#128655 - joboet:play_with_the_dice, r=ChrisDenton 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
2 parents a2e1d15 + 99c0d76 commit c84c158

File tree

1 file changed

+137
-173
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+137
-173
lines changed

0 commit comments

Comments
 (0)