Skip to content

Commit

Permalink
Fix randomize code not checking tidlow collision properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Feb 20, 2022
1 parent 460e778 commit 8334b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def makecia(cmdarg, path, title, output=None, randomize=False, tidlow=[]):
gamecode = getgamecode(path)
uniqueid = None
if randomize:
uniqueid = hex(random.randint(0x300, 0xF7FFF))
uniqueid = hex(random.randint(0x300, 0xF7FFF))[2:]
else:
gamecodeint = int(hexlify(gamecode.encode()).decode(), 16)
uniqueid = hex(gamecodeint ^ ((gamecodeint) >> 27))[3:8]
Expand Down

0 comments on commit 8334b99

Please sign in to comment.