https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
--- Comment #5 from Florian Weimer <fweimer at redhat dot com> --- The fix is incomplete because short reads can happen in practice for /dev/random at least. The usual retry loop is needed. It is not clear what to do on EINTR.