diff options
| author | Ben Noordhuis <info@bnoordhuis.nl> | 2018-02-04 00:51:21 +0100 |
|---|---|---|
| committer | Ben Noordhuis <info@bnoordhuis.nl> | 2018-02-04 18:58:36 +0100 |
| commit | 73ee434c8c81c373c8dc723c3aa6677978352642 (patch) | |
| tree | 76c7319d14cc89645b4a1abb5539fa16c9abe8f6 /src/ir.cpp | |
| parent | 15eb28efafd0c454e8302cbff0f5c90041d0b17d (diff) | |
| download | zig-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 'src/ir.cpp')
0 files changed, 0 insertions, 0 deletions
