test overlay fixes

This commit is contained in:
The MMGen Project 2022-01-22 14:26:12 +00:00
commit 5d6e79783f
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 4 additions and 1 deletions

View file

@ -12,7 +12,7 @@ def overlay_setup(repo_root):
d == 'mmgen.data' or
d == 'mmgen' and fn.startswith('secp256k1')
):
if fn in fakemods:
if d == 'mmgen' and fn in fakemods:
make_link(
os.path.join(fakemod_dir,fn),
os.path.join(destdir,fn) )

View file

@ -1,10 +1,13 @@
from .crypto_orig import *
if os.getenv('MMGEN_TEST_SUITE_DETERMINISTIC'):
get_random_orig = get_random
add_user_random_orig = add_user_random
import sys
fake_rand_h = sha256('.'.join(sys.argv).encode())
def fake_urandom(n):
def gen(rounds):