Boost C++ Libraries: Ticket #9945: Regression test using random number generator incorrectly https://svn.boost.org/trac10/ticket/9945 <p> 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. </p> <p> The randomizer must be instantiated outside the loop. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9945 Trac 1.4.3 Niklas Angare <li51ckf02@…> Thu, 26 Jun 2014 21:48:37 GMT owner, component changed https://svn.boost.org/trac10/ticket/9945#comment:1 https://svn.boost.org/trac10/ticket/9945#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">René Rivera</span> to <span class="trac-author">No-Maintainer</span> </li> <li><strong>component</strong> <span class="trac-field-old">Regression Testing</span> → <span class="trac-field-new">utility</span> </li> </ul> Ticket