47855c9907de — Chris Cannam 5 days ago
Don't use drand48, it doesn't always exist and since we don't care about the quality of output, it's not worth testing for
1 files changed, 2 insertions(+), 2 deletions(-)

M src/test/TestFFT.cpp
M src/test/TestFFT.cpp +2 -2
@@ 699,9 699,9 @@ ALL_IMPL_AUTO_TEST_CASE(random)
     double *re_compare = new double[n/2 + 1];
     double *im_compare = new double[n/2 + 1];
     double *back = new double[n];
-    srand48(0);
+    srand();
     for (int i = 0; i < n; ++i) {
-        in[i] = drand48() * 4.0 - 2.0;
+        in[i] = (double(rand()) / double(RAND_MAX)) * 4.0 - 2.0;
     }
     USING_FFT(n);
     if (eps < 1e-11) {