Remove randbytes from eth tests

This commit is contained in:
nolash
2021-11-29 15:44:09 +01:00
parent e7fcde7530
commit 8f78e80bb1
3 changed files with 20 additions and 13 deletions

View File

@@ -41,8 +41,15 @@ class TestCICEthBase(EthTesterCase):
def setUp(self):
super(TestCICEthBase, self).setUp()
random.seed(42)
self.initial_description = add_0x(random.randbytes(32).hex())
self.token_address = add_0x(random.randbytes(20).hex())
f = open('/dev/urandom', 'rb')
#self.initial_description = add_0x(random.randbytes(32).hex())
#self.token_address = add_0x(random.randbytes(20).hex())
initial_description_bytes = f.read(32)
self.initial_description = add_0x(initial_description_bytes.hex())
token_address_bytes = f.read(20)
self.token_address = add_0x(token_address_bytes.hex())
f.close()
addresses = self.keystore.list()