[Boost-bugs] [Boost C++ Libraries] #9945: Regression test using random number generator incorrectly

Subject: [Boost-bugs] [Boost C++ Libraries] #9945: Regression test using random number generator incorrectly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-23 18:35:05


#9945: Regression test using random number generator incorrectly
------------------------------+--------------------------------
 Reporter: chris.cooper@… | Owner: grafik
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Regression Testing
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+--------------------------------
 libs/utility/operators_test.cpp loops 1000 times, running a variety of
 tests on seemingly random values. However, since the randomizer
 (boost::minstd_rand) is instantiated inside the loop, it is re-seeded for
 each loop, meaning it runs the test 1000x with the exact same values each
 time.

 The randomizer must be instantiated outside the loop.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9945>
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:16 UTC