aboutsummaryrefslogtreecommitdiff
path: root/std/os/linux
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2018-02-04 00:51:21 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2018-02-04 18:58:36 +0100
commit73ee434c8c81c373c8dc723c3aa6677978352642 (patch)
tree76c7319d14cc89645b4a1abb5539fa16c9abe8f6 /std/os/linux
parent15eb28efafd0c454e8302cbff0f5c90041d0b17d (diff)
downloadzig-73ee434c8c81c373c8dc723c3aa6677978352642.tar.gz
zig-73ee434c8c81c373c8dc723c3aa6677978352642.zip
Use /dev/urandom and sysctl(RANDOM_UUID) on Linux.
Add fallback paths for when the getrandom(2) system call is not available. Try /dev/urandom first and sysctl(RANDOM_UUID) second. The sysctl issues a warning in the system logs with some kernels but that seems like an acceptable tradeoff for the fallback of a fallback.
Diffstat (limited to 'std/os/linux')
0 files changed, 0 insertions, 0 deletions