[Boost-bugs] [Boost C++ Libraries] #10980: boost::random::random_device bug with /dev/random

Subject: [Boost-bugs] [Boost C++ Libraries] #10980: boost::random::random_device bug with /dev/random
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-29 08:08:46


#10980: boost::random::random_device bug with /dev/random
-------------------------------------------------+-------------------------
 Reporter: Bastiaan Stougie | Owner: no-
  <bastiaan.stougie@…> | maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
  Version: Boost 1.56.0 | Severity: Problem
 Keywords: random_device |
-------------------------------------------------+-------------------------
 There is a bug in boost 1.56 random_device implementation where it can
 fail to read from /dev/random with an exception

     "boost::random_device: EOF while reading random-number pseudo-device
 /dev/random: Success"

 The boost random_device code attempts to read 4 bytes from /dev/random,
 gets fewer but >0 bytes because /dev/random temporarily runs out of random
 data, and boost random_device incorrectly concludes that end of file has
 been reached and throws an exception, where it should just try to read
 more bytes.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10980>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC