From 5fa4667fb87555fb5772bb4d09819bea9de6a7a5 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sun, 16 Mar 2014 02:00:01 +0100 Subject: [PATCH] fix error in test fixture random offset should always be != zero --- tests/library/time/digxel-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/library/time/digxel-test.cpp b/tests/library/time/digxel-test.cpp index dab6738d2..c3e891f28 100644 --- a/tests/library/time/digxel-test.cpp +++ b/tests/library/time/digxel-test.cpp @@ -54,7 +54,7 @@ namespace test{ inline double randomFrac() { - double arbitrary = (rand() % RAND_RANGE); + double arbitrary = (1 + rand() % RAND_RANGE); arbitrary /= (1 + rand() % RAND_DENOM); static double prevVal;