diff --git a/Rom.py b/Rom.py index 1b77af9e..fd57b782 100644 --- a/Rom.py +++ b/Rom.py @@ -727,8 +727,7 @@ def patch_rom(world, rom, player, team, enemized): rom.write_byte(0x180182, 0x00) # Don't auto equip silvers on pickup # set up game internal RNG seed - for i in range(1024): - rom.write_byte(0x178000 + i, random.randint(0, 255)) + rom.write_bytes(0x178000, random.getrandbits(8 * 1024).to_bytes(1024, 'big')) # shuffle prize packs prizes = [0xD8, 0xD8, 0xD8, 0xD8, 0xD9, 0xD8, 0xD8, 0xD9, 0xDA, 0xD9, 0xDA, 0xDB, 0xDA, 0xD9, 0xDA, 0xDA, 0xE0, 0xDF, 0xDF, 0xDA, 0xE0, 0xDF, 0xD8, 0xDF,