__init__.pyi 386 B

1234567891011121314151617181920
  1. from typing import Any
  2. __all__ = ['new', 'get_random_bytes']
  3. from os import urandom
  4. class _UrandomRNG(object):
  5. def read(self, n: int) -> bytes:...
  6. def flush(self) -> None: ...
  7. def reinit(self) -> None: ...
  8. def close(self) -> None: ...
  9. def new(*args: Any, **kwargs: Any) -> _UrandomRNG: ...
  10. def atfork() -> None: ...
  11. get_random_bytes = urandom