https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98129
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-pc-linux-gnu --- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Question... on your respective systems, could you strace or truss it and find if there is a short read? On Linux, there seems to be a limitation of how many bytes a read from /dev/urandom returns, and we assume that this is an end of file. However, this is not correct - we can only safely assume eof if read() returns zero bytes.