From a642759798b672e23fc7eecd0fbe233116f1ae14 Mon Sep 17 00:00:00 2001 From: hedara90 <90hedara@gmail.com> Date: Mon, 3 Feb 2025 23:32:29 +0100 Subject: [PATCH] Changed two LocalRandom calls to new LocalRandom32 (#6173) Co-authored-by: Hedara --- src/trainer_pools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trainer_pools.c b/src/trainer_pools.c index a3ea1de22b..a2db4d81f5 100644 --- a/src/trainer_pools.c +++ b/src/trainer_pools.c @@ -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;