nomos-specs/mixnet/utils.py

7 lines
145 B
Python

from random import randint
def random_bytes(size: int) -> bytes:
assert size >= 0
return bytes([randint(0, 255) for _ in range(size)])