Make std::random_device retry after short reads
commit8efb09c4325785a5e7d11d05c5aadc74d2a49887
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2015 15:06:42 +0000 (17 15:06 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2015 15:06:42 +0000 (17 15:06 +0000)
tree0dd3c7308998c3b62b6757ec7e3b42426e1828b6
parent3e745c1e38dac25a1eeee325d5e8a0bffdf73304
Make std::random_device retry after short reads

PR libstdc++/65142
* src/c++11/random.cc (random_device::_M_getval()): Retry after short
reads.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227872 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/random.cc