C64: Optimize the RNG for 1541 flux transitions. (same output)
This commit is contained in:
parent
3bf37f1c17
commit
d36e02045b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue