test: replace random_bytes with randbytes #28720

This commit is contained in:
ns-xvrn
2023-10-25 00:45:29 -04:00
parent 64879f4c03
commit fe3ac3700d
5 changed files with 35 additions and 44 deletions

View File

@@ -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
############################################