[Bug libstdc++/65142] std::random_device Ignores Read Return Code

fweimer at redhat dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 14 14:47:00 GMT 2015


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.



More information about the Gcc-bugs mailing list