rand/noise.c (noise_devrandom): Handle Linux's broken `/dev/urandom'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 4 Jun 2016 13:55:30 +0000 (14:55 +0100)
commitecc296ebb74bb17cfb9998972a4bc28b91e82da0
tree9a4833c3e05f53d68e2046dc54741237130bdff4
parentc22fa0c92e942bb1f7681cc6a28398ed1e6ddd49
rand/noise.c (noise_devrandom): Handle Linux's broken `/dev/urandom'.

On Linux, try to open `/dev/random' and make sure it's readable before
proceeding to `/dev/urandom'.  Generally we want to be reading
`/dev/urandom', but not if it hasn't been initialized properly.
rand/noise.c