Use our own RNG instead of C-style rand() (fixes issue #336).

This commit is contained in:
Stephen Anthony 2018-08-06 14:28:48 -02:30
parent d71b33918a
commit 2406b8ad0f
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ void PointingDevice::updateDirection(int counter, float& counterRemainder,
scanCount = INT_MAX;
// Define offset factor for first change, move randomly forward by up to 1/8th
firstScanOffset = (((firstScanOffset << 3) + rand() %
firstScanOffset = (((firstScanOffset << 3) + mySystem.randGenerator().next() %
(1 << 12)) >> 3) & ((1 << 12) - 1);
}
}