test: replace random_bytes with randbytes #28720

This commit is contained in:
ns-xvrn committed 2023-10-25 08:56:41 -04:00
1 parent 64879f4c03
commit fe3ac3700d
5 files changed
+35 -44

No files matched your search

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