python3 has different encoding syntax

This commit is contained in:
Martin Diehl 2018-12-06 06:27:07 +01:00
parent 95e6a41807
commit ee7e4ee0d9
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ for name in filenames:
continue
damask.util.report(scriptName,name)
randomSeed = int(os.urandom(4).encode('hex'), 16) if options.randomSeed is None else options.randomSeed # random seed per file for second phase
randomSeed = int(os.urandom(4).hex(), 16) if options.randomSeed is None else options.randomSeed # random seed per file for second phase
random.seed(randomSeed)
# ------------------------------------------ read header and data ---------------------------------