Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68329 - trunk/libs/random/test
From: steven_at_[hidden]
Date: 2011-01-20 17:56:26


Author: steven_watanabe
Date: 2011-01-20 17:56:25 EST (Thu, 20 Jan 2011)
New Revision: 68329
URL: http://svn.boost.org/trac/boost/changeset/68329

Log:
reduce the number of bins.
Text files modified:
   trunk/libs/random/test/test_piecewise_linear.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/random/test/test_piecewise_linear.cpp
==============================================================================
--- trunk/libs/random/test/test_piecewise_linear.cpp (original)
+++ trunk/libs/random/test/test_piecewise_linear.cpp 2011-01-20 17:56:25 EST (Thu, 20 Jan 2011)
@@ -111,7 +111,7 @@
 
 bool do_tests(int repeat, int max_n, long long trials) {
     boost::mt19937 gen;
- boost::uniform_int<> idist(1, max_n);
+ boost::uniform_int<> idist(2, max_n);
     int errors = 0;
     for(int i = 0; i < repeat; ++i) {
         if(!do_test(idist(gen), trials)) {
@@ -143,7 +143,7 @@
 
 int main(int argc, char** argv) {
     int repeat = 10;
- int max_n = 100000;
+ int max_n = 10;
     long long trials = 1000000ll;
 
     if(argc > 0) {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk