https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Fri Oct 2 20:08:04 2015 New Revision: 228419 URL: https://gcc.gnu.org/viewcvs?rev=228419&root=gcc&view=rev Log: Backport PR libstdc++/65142 fix from mainline PR libstdc++/65142 * src/c++11/random.cc (random_device::_M_getval()): Check read result and retry after short reads. Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/src/c++11/random.cc