This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/65142] std::random_device Ignores Read Return Code
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Sep 2015 11:43:56 +0000
- Subject: [Bug libstdc++/65142] std::random_device Ignores Read Return Code
- Auto-submitted: auto-generated
- References: <bug-65142-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #7)
> If the user controls how the random file is opened (non-blocking or blocking)
They don't.
> then the behavior (whether to re-try on EINTR or short reads) should be
> controlled by that choice. Starting to throw on users that don't expect that
> would be bad.
The function is specified to throw on error by the standard.