Skip to content

Commit

Permalink
Merge 2089176 into 9954742
Browse files Browse the repository at this point in the history
  • Loading branch information
EchterAgo committed Aug 3, 2020
2 parents 9954742 + 2089176 commit a67b9e6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/tests/test_cashaddrenc.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@

import binascii
import unittest
import random
from random import Random
from .. import cashaddr


random = Random()


BCH_PREFIX = "bitcoincash"
BCH_TESTNET_PREFIX = "bchtest"

Expand Down Expand Up @@ -57,6 +60,10 @@
class TestCashAddrAddress(unittest.TestCase):
"""Unit test class for cashaddr addressess."""

def setUp(self):
global random
random = Random(42)

# Valid address sizes from the cashaddr spec
valid_sizes = [160, 192, 224, 256, 320, 384, 448, 512]

Expand Down

0 comments on commit a67b9e6

Please sign in to comment.