/var/opt/nydus/ops/oscrypto/__pycache__
Edit: /var/opt/nydus/ops/oscrypto/__pycache__/_rand.cpython-312.pyc (1439B)
Nj L d dl mZmZmZmZ d dlZddlmZ ddlm Z m
Z
dgZd Zy) )unicode_literalsdivisionabsolute_importprint_functionN )pretty_message) type_name int_types
rand_bytesc t | t st t dt | | dk rt d | dkD rt d t
j | S )a}
Returns a number of random bytes suitable for cryptographic purposes
:param length:
The desired number of bytes
:raises:
ValueError - when any of the parameters contain an invalid value
TypeError - when any of the parameters are of the wrong type
OSError - when an error is returned by OpenSSL
:return:
A byte string
z;
length must be an integer, not %s
r zlength must be greater than 0i z$length must not be greater than 1024)
isinstancer
TypeErrorr r
ValueErrorosurandom)lengths ?/opt/nydus/tmp/pip-target-a90h98xg/lib/python/oscrypto/_rand.pyr r sh fi(
f
z899
}?@@
::f )
__future__r r r r r _errorsr _typesr r
__all__r r r
r s% R R # (
r