π FileMgr
π
/
lib64
/
python3.9
/
__pycache__
βοΈ /
β¬ Kembali
a οΏ½iοΏ½ οΏ½ @ st d Z g dοΏ½ZddlZddlZddlmZ ddlmZ eοΏ½ Zej Z ejZddοΏ½ ZdZ dd d οΏ½ZdddοΏ½Zdd dοΏ½ZdS )zοΏ½Generate cryptographically strong pseudo-random numbers suitable for managing secrets such as account authentication, tokens, and similar. See PEP 506 for more information. https://www.python.org/dev/peps/pep-0506/ )οΏ½choiceοΏ½ randbelowοΏ½randbitsοΏ½SystemRandomοΏ½token_bytesοΏ½ token_hexοΏ½ token_urlsafeοΏ½compare_digestοΏ½ N)r )r c C s | dkrt dοΏ½οΏ½tοΏ½| οΏ½S )z(Return a random int in the range [0, n).r zUpper bound must be positive.)οΏ½ ValueErrorοΏ½_sysrandοΏ½ _randbelow)Zexclusive_upper_boundοΏ½ r οΏ½/usr/lib64/python3.9/secrets.pyr s r οΏ½ c C s | du rt } tοΏ½| οΏ½S )zοΏ½Return a random byte string containing *nbytes* bytes. If *nbytes* is ``None`` or not supplied, a reasonable default is used. >>> token_bytes(16) #doctest:+SKIP b'\xebr\x17D*t\xae\xd4\xe3S\xb6\xe2\xebP1\x8b' N)οΏ½DEFAULT_ENTROPYr οΏ½ randbytesοΏ½οΏ½nbytesr r r r "