fix random init error (division by zero possible)
This commit is contained in:
parent
fa5e7db2d3
commit
57741a94d9
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ namespace test {
|
|||
Time point (myGrid->timeOf (randomFrame));
|
||||
CHECK (point == testOrigin + randomFrame * testFps.duration());
|
||||
|
||||
uint fract = rand() % DIRT_GRAIN;
|
||||
uint fract = 1 + rand() % DIRT_GRAIN;
|
||||
FSecs dirt = rational_cast<FSecs> (1 / testFps / fract);
|
||||
|
||||
Time dirty(point + Time(dirt));
|
||||
|
|
|
|||
Loading…
Reference in a new issue