Skip to content

Commit

Permalink
Changed two LocalRandom calls to new LocalRandom32 (#6173)
Browse files Browse the repository at this point in the history
Co-authored-by: Hedara <hedara90@gmail.com>
  • Loading branch information
hedara90 and Hedara authored Feb 3, 2025
1 parent e9c14e3 commit a642759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trainer_pools.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down

0 comments on commit a642759

Please sign in to comment.