From ae845940d98a589acb237ece6c93bf9c6fd1a1af Mon Sep 17 00:00:00 2001 From: 0Gitnick <36289298+0Gitnick@users.noreply.github.com> Date: Tue, 13 Aug 2019 08:13:52 -0500 Subject: [PATCH] Increase random bits mainly for preventing duplicate nonces for the same block --- onionr/onionrproofs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionr/onionrproofs.py b/onionr/onionrproofs.py index fb6cafda..8402f727 100755 --- a/onionr/onionrproofs.py +++ b/onionr/onionrproofs.py @@ -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()