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

Merge pull request #1376 from disarray2077/patch-6

Fix arithmetic overflow error in Random
This commit is contained in:
Brian Fiete 2022-01-13 11:43:35 -05:00 committed by GitHub
commit 8f7f7cba21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,7 @@ namespace System
if (++locINext >= 56) locINext = 1;
if (++locINextp >= 56) locINextp = 1;
retVal = SeedArray[locINext] - SeedArray[locINextp];
retVal = SeedArray[locINext] &- SeedArray[locINextp];
SeedArray[locINext] = retVal;
inext = locINext;