This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]