aboutsummaryrefslogtreecommitdiff
path: root/std/os/linux_random.zig
AgeCommit message (Collapse)Author
2018-02-05fix test failure, organize code, add new compile errorAndrew Kelley
2018-02-04Use /dev/urandom and sysctl(RANDOM_UUID) on Linux.Ben Noordhuis
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.