mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-03 21:53:07 +00:00
7 lines
145 B
Python
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)])
|