diff --git a/src/core/execution/BotSpawner.ts b/src/core/execution/BotSpawner.ts index c09d0fa6e..3ccea6a35 100644 --- a/src/core/execution/BotSpawner.ts +++ b/src/core/execution/BotSpawner.ts @@ -13,7 +13,9 @@ export class BotSpawner { private gs: Game, private gameID: GameID, ) { - this.random = new PseudoRandom(simpleHash(gameID)); + // Use a different seed than createGameRunner (which uses simpleHash(gameID)) + // to avoid bot IDs colliding with nation/human IDs from the same PRNG sequence. + this.random = new PseudoRandom(simpleHash(gameID) + 2); } spawnBots(numBots: number): SpawnExecution[] {