mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-09 10:12:06 +02:00
test: replace random_bytes with randbytes #28720
This commit is contained in:
@@ -13,7 +13,6 @@ import json
|
||||
import logging
|
||||
import os
|
||||
import pathlib
|
||||
import random
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
@@ -287,12 +286,6 @@ def sha256sum_file(filename):
|
||||
return h.digest()
|
||||
|
||||
|
||||
# TODO: Remove and use random.randbytes(n) directly
|
||||
def random_bytes(n):
|
||||
"""Return a random bytes object of length n."""
|
||||
return random.randbytes(n)
|
||||
|
||||
|
||||
# RPC/P2P connection constants and functions
|
||||
############################################
|
||||
|
||||
|
Reference in New Issue
Block a user