fix error in test fixture
random offset should always be != zero
This commit is contained in:
parent
7c3efb309a
commit
5fa4667fb8
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ namespace test{
|
||||||
inline double
|
inline double
|
||||||
randomFrac()
|
randomFrac()
|
||||||
{
|
{
|
||||||
double arbitrary = (rand() % RAND_RANGE);
|
double arbitrary = (1 + rand() % RAND_RANGE);
|
||||||
arbitrary /= (1 + rand() % RAND_DENOM);
|
arbitrary /= (1 + rand() % RAND_DENOM);
|
||||||
|
|
||||||
static double prevVal;
|
static double prevVal;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue