work on mail settings, onionruser own key adding bug fix

This commit is contained in:
Kevin Froman 2020-02-27 21:06:28 -06:00
parent 862c6f2ea4
commit b62e613e8e
8 changed files with 25 additions and 24 deletions

View file

@ -10,6 +10,7 @@ from multiprocessing import Pipe, Process
import threading
import time
import json
import secrets
import logger
import onionrproofs
@ -109,7 +110,7 @@ class SubprocessPOW:
def do_pow(self, pipe):
"""find partial hash colision generating nonce for a block"""
nonce = BLOCK_NONCE_START_INT
nonce = -secrets.randbelow(10**10)
data = self.data
metadata = self.metadata
puzzle = self.puzzle