changeset 21:019f6415950d

...
author cannam
date Fri, 20 Mar 2009 15:56:36 +0000
parents 5af5eb2627ad
children ca6803a93bb7
files TestInputExtremes.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TestInputExtremes.cpp	Fri Mar 20 15:52:09 2009 +0000
+++ b/TestInputExtremes.cpp	Fri Mar 20 15:56:36 2009 +0000
@@ -227,7 +227,7 @@
     for (int i = 0; i < 100; ++i) {
         for (size_t j = 0; j < blocksize; ++j) {
             for (size_t c = 0; c < channels; ++c) {
-                block[c][j] = float(drand48() * 2.0 - 1.0);
+                block[c][j] = (float(rand()) / RAND_MAX) * 2.0 - 1.0;
             }
             ++idx;
         }