You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/mocks/generated/trezorcrypto/random.pyi

19 lines
427 B

from typing import *
def uniform(n: int) -> int:
"""
Compute uniform random number from interval 0 ... n - 1.
"""
import builtins
def bytes(len: int) -> builtins.bytes:
"""
Generate random bytes sequence of length len.
"""
def shuffle(data: list) -> None:
"""
Shuffles items of given list (in-place).
"""
def reseed(value: int) -> None:
"""
Re-seed the RNG with given value.
"""