mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 10:12:37 +02:00
Minor Python cleanups to make flake8 pass with the new rules enabled
This commit is contained in:
@@ -25,7 +25,7 @@ salt = "".join([x[2:] for x in hexseq])
|
||||
|
||||
#Create 32 byte b64 password
|
||||
password = base64.urlsafe_b64encode(os.urandom(32)).decode("utf-8")
|
||||
|
||||
|
||||
m = hmac.new(bytearray(salt, 'utf-8'), bytearray(password, 'utf-8'), "SHA256")
|
||||
result = m.hexdigest()
|
||||
|
||||
|
Reference in New Issue
Block a user