C64: Optimize the RNG for 1541 flux transitions. (same output)

This commit is contained in:
SaxxonPike 2019-07-06 16:32:21 -05:00
parent 3bf37f1c17
commit d36e02045b
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.Serial
_rngCurrent = 1;
}
_rngCurrent = (int)(_rngCurrent * LEHMER_RNG_PRIME % int.MaxValue);
_rngCurrent = unchecked((int) ((_rngCurrent * LEHMER_RNG_PRIME) & int.MaxValue));
}
private void ExecuteFlux()