aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_net_deadlock.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/p2p_net_deadlock.py')
-rwxr-xr-xtest/functional/p2p_net_deadlock.py4
1 files changed, 2 insertions, 2 deletions
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))