use optimized hmac.digest() instead of hmac.new().digest()
This commit is contained in:
parent
b5870f1694
commit
350c600bb3
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ def sha256_rounds(s,n):
|
|||
|
||||
def scramble_seed(seed,scramble_key):
|
||||
import hmac
|
||||
step1 = hmac.new(seed,scramble_key,sha256).digest()
|
||||
step1 = hmac.digest(seed,scramble_key,'sha256')
|
||||
if g.debug:
|
||||
msg(f'Seed: {seed.hex()!r}\nScramble key: {scramble_key}\nScrambled seed: {step1.hex()}\n')
|
||||
return sha256_rounds(step1,g.scramble_hash_rounds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue