mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 07:20:56 +00:00
12 lines
269 B
Python
12 lines
269 B
Python
from ..src import prng
|
|
|
|
|
|
def test_prng():
|
|
buf = prng.random_buffer(4)
|
|
assert buf == b"\x5f\xf3\x6e\x3c"
|
|
buf = prng.random_buffer(4)
|
|
assert buf == b"\x32\x29\x50\x47"
|
|
|
|
buf = prng.random_buffer(8)
|
|
assert buf == b"\xe9\xf6\xcc\xd1\x34\x53\xf9\xaa"
|