Increase random bits mainly for preventing duplicate nonces for the same block

This commit is contained in:
0Gitnick 2019-08-13 08:13:52 -05:00
parent 795266edaf
commit ae845940d9
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class POW:
iFound = False # if current thread is the one that found the answer
answer = ''
hbCount = 0
nonce = int(binascii.hexlify(nacl.utils.random(2)), 16)
nonce = int(binascii.hexlify(nacl.utils.random(64)), 16)
startNonce = nonce
while self.hashing:
#token = nacl.hash.blake2b(rand + self.data).decode()