1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 17:28:00 +02:00

Fix negative numbers in Random

This commit is contained in:
Brian Fiete 2022-01-09 17:56:28 -05:00
parent bf49bf767b
commit 9c138399fc

View file

@ -116,10 +116,6 @@ namespace System
if (++locINextp >= 56) locINextp = 1;
retVal = SeedArray[locINext] - SeedArray[locINextp];
if (retVal == MBIG) retVal--;
if (retVal < 0) retVal += MBIG;
SeedArray[locINext] = retVal;
inext = locINext;