blob: ddc5b9b016d7716d110986fd1241836a252198cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from typing import Any
__all__ = ['new', 'get_random_bytes']
from os import urandom
class _UrandomRNG(object):
def read(self, n: int) -> bytes:...
def flush(self) -> None: ...
def reinit(self) -> None: ...
def close(self) -> None: ...
def new(*args: Any, **kwargs: Any) -> _UrandomRNG: ...
def atfork() -> None: ...
get_random_bytes = urandom
|