https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Fri Oct 2 20:51:34 2015 New Revision: 228424 URL: https://gcc.gnu.org/viewcvs?rev=228424&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-4_9-branch/libstdc++-v3/ChangeLog branches/gcc-4_9-branch/libstdc++-v3/src/c++11/random.cc