✏️ 正在编辑: _rand.cpython-312.pyc
路径:
/var/opt/nydus/ops/oscrypto/__pycache__/_rand.cpython-312.pyc
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
� ��'j � �L � d dl mZmZmZmZ d dlZddlmZ ddlm Z m Z dgZd� Zy)� )�unicode_literals�division�absolute_import�print_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 � ValueError�os�urandom)�lengths �?/opt/nydus/tmp/pip-target-k0fmikie/lib/python/oscrypto/_rand.pyr r sh � � �f�i�(��� � �f�� � � � ��z��8�9�9� ��}��?�@�@� �:�:�f��� ) � __future__r r r r r �_errorsr �_typesr r �__all__r � r r �<module>r s% �� R� R� � #� (� ��� r
💾 保存文件
← 返回文件管理器