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:
parent
bf49bf767b
commit
9c138399fc
1 changed files with 0 additions and 4 deletions
|
@ -116,10 +116,6 @@ namespace System
|
||||||
if (++locINextp >= 56) locINextp = 1;
|
if (++locINextp >= 56) locINextp = 1;
|
||||||
|
|
||||||
retVal = SeedArray[locINext] - SeedArray[locINextp];
|
retVal = SeedArray[locINext] - SeedArray[locINextp];
|
||||||
|
|
||||||
if (retVal == MBIG) retVal--;
|
|
||||||
if (retVal < 0) retVal += MBIG;
|
|
||||||
|
|
||||||
SeedArray[locINext] = retVal;
|
SeedArray[locINext] = retVal;
|
||||||
|
|
||||||
inext = locINext;
|
inext = locINext;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue