fix error in test fixture

random offset should always be != zero
This commit is contained in:
Fischlurch 2014-03-16 02:00:01 +01:00
parent 7c3efb309a
commit 5fa4667fb8

View file

@ -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;