Add CSPRNG option: --securerandom

This commit is contained in:
Kevin Cathcart
2020-06-26 20:12:30 -04:00
parent 90d1353ae6
commit 4ad31d641b
11 changed files with 62 additions and 11 deletions

4
Rom.py
View File

@@ -3,7 +3,7 @@ import json
import hashlib
import logging
import os
import random
import RaceRandom as random
import struct
import subprocess
@@ -1043,7 +1043,7 @@ def patch_rom(world, player, rom):
# set rom name
# 21 bytes
from Main import __version__
rom.name = bytearray('ER_{0}_{1:09}\0'.format(__version__[0:7],world.seed), 'utf8')
rom.name = bytearray('ER_{0}_{1}\0'.format(__version__[0:7], world.seed), 'utf8')
assert len(rom.name) <= 21
rom.write_bytes(0x7FC0, rom.name)