fix Factorio Recipe Time randomization not being deterministic

This commit is contained in:
Fabian Dill
2021-06-11 14:47:13 +02:00
parent 278f40471b
commit 760fb32016
5 changed files with 12 additions and 12 deletions

View File

@@ -130,8 +130,8 @@ def main(args, seed=None):
setattr(world, option, getattr(args, option, {}))
world.glitch_triforce = args.glitch_triforce # This is enabled/disabled globally, no per player option.
world.rom_seeds = {player: random.Random(world.random.randint(0, 999999999)) for player in
range(1, world.players + 1)}
world.slot_seeds = {player: random.Random(world.random.randint(0, 999999999)) for player in
range(1, world.players + 1)}
for player in range(1, world.players + 1):
world.er_seeds[player] = str(world.random.randint(0, 2 ** 64))