From 79843b51267d7a8faf8e9dcee09fa5e167373e6d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2012 18:15:04 +0000 Subject: Added seed parameter to constructor of two PRNGs. Also fixed horrible mistake in RandomBasic. --- src/tests/random.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/random.cpp') diff --git a/src/tests/random.cpp b/src/tests/random.cpp index e48c543..95cdb0a 100644 --- a/src/tests/random.cpp +++ b/src/tests/random.cpp @@ -15,7 +15,7 @@ void coverage() uint32_t uBucket[78]; memset( uBucket, 0, sizeof(uint32_t)*78 ); - for( int j = 0; j < 1000000; j++ ) + for( int j = 0; j < 1000; j++ ) { uBucket[(int)(((uint32_t)rand.rand())/(double)(0xfffffffful)*78+0.5)]++; } -- cgit v1.2.3