[Bug libstdc++/57920] [c++11] Linux: std::random_device reads too much from /dev/urandom
gnu at binarywings dot net
gcc-bugzilla@gcc.gnu.org
Tue Feb 11 21:36:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57920
Florian Philipp <gnu at binarywings dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gnu at binarywings dot net
--- Comment #9 from Florian Philipp <gnu at binarywings dot net> ---
Created attachment 32110
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32110&action=edit
Patch without POSIX I/O
I find the original patch as applied to mainline unnecessarily complicated. You
can achieve the same just with std I/O by deactivating buffering with
std::setbuf. Basically a one line change when applied to the original version.
More information about the Gcc-bugs
mailing list