mirror of https://github.com/stella-emu/stella.git
Use our own RNG instead of C-style rand() (fixes issue #336).
This commit is contained in:
parent
d71b33918a
commit
2406b8ad0f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue