From fe3ac3700d31a6329056fee983d91dd8e4c987c1 Mon Sep 17 00:00:00 2001 From: ns-xvrn Date: Wed, 25 Oct 2023 00:45:29 -0400 Subject: test: replace random_bytes with randbytes #28720 --- test/functional/p2p_net_deadlock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional/p2p_net_deadlock.py') diff --git a/test/functional/p2p_net_deadlock.py b/test/functional/p2p_net_deadlock.py index f69fe52146..1a357b944b 100755 --- a/test/functional/p2p_net_deadlock.py +++ b/test/functional/p2p_net_deadlock.py @@ -5,7 +5,7 @@ import threading from test_framework.test_framework import BitcoinTestFramework -from test_framework.util import random_bytes +from random import randbytes class NetDeadlockTest(BitcoinTestFramework): @@ -18,7 +18,7 @@ class NetDeadlockTest(BitcoinTestFramework): node1 = self.nodes[1] self.log.info("Simultaneously send a large message on both sides") - rand_msg = random_bytes(4000000).hex() + rand_msg = randbytes(4000000).hex() thread0 = threading.Thread(target=node0.sendmsgtopeer, args=(0, "unknown", rand_msg)) thread1 = threading.Thread(target=node1.sendmsgtopeer, args=(0, "unknown", rand_msg)) -- cgit v1.2.3