Not that much of a fix. It’s mostly down to pedantry on my behalf.
My understanding is that:
/dev/random is blocking unless sufficient entropy is available.
/dev/urandom is non-blocking and will supply output anyway.
So for security-critical stuff that might run in a low entropy state (such as during boot), you probably want to use /dev/random. But in 99% of the cases /dev/urandom is fine, and it won’t halt your program.
urandom*
Fixed
Not that much of a fix. It’s mostly down to pedantry on my behalf.
My understanding is that:
/dev/random is blocking unless sufficient entropy is available.
/dev/urandom is non-blocking and will supply output anyway.
So for security-critical stuff that might run in a low entropy state (such as during boot), you probably want to use /dev/random. But in 99% of the cases /dev/urandom is fine, and it won’t halt your program.