Changed two LocalRandom calls to new LocalRandom32 (#6173)

Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
hedara90 2025-02-03 23:32:29 +01:00 committed by GitHub
parent e9c14e35ca
commit a642759798
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -257,7 +257,7 @@ static void RandomizePoolIndices(const struct Trainer *trainer, u8 *poolIndexArr
u32 seed = GetPoolSeed(trainer);
localRngState = LocalRandomSeed(seed);
// Replace the LocalRandom with LocalRandom32 when implemented
rnd = LocalRandom(&localRngState) + (LocalRandom(&localRngState) << 16);
rnd = LocalRandom32(&localRngState);
}
else
{
@ -284,7 +284,7 @@ static void RandomizePoolIndices(const struct Trainer *trainer, u8 *poolIndexArr
if (usedBits + numBits > 32)
{
if (B_POOL_SETTING_CONSISTENT_RNG)
rnd = LocalRandom(&localRngState) + (LocalRandom(&localRngState) << 16);
rnd = LocalRandom32(&localRngState);
else
rnd = Random32();
usedBits = 0;