Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
rand.cpython-313.pyc29 linesDownload Raw Back to __pycache__
1�

2��j���`�SrSSKJr SSKrSSKJr \R"S\SS9 S3Sjr	SS	jr4g)z*5PRNG management routines, thin wrappers.6�)�annotationsN)�libz>OpenSSL.rand is deprecated - you should use os.urandom instead�)�7stacklevelc���[U[5(d[S5e[U[5(d[S5e[R8"U[
U5U5 g)a�9Mix bytes from *string* into the PRNG state.10 11The *entropy* argument is (the lower bound of) an estimate of how much12randomness is contained in *string*, measured in bytes.13 14For more information, see e.g. :rfc:`1750`.15 16This function is only relevant if you are forking Python processes and17need to reseed the CSPRNG after fork.18 19:param buffer: Buffer with random data.20:param entropy: The entropy (in bytes) measurement of the buffer.21 22:return: :obj:`None`23zbuffer must be a byte stringzentropy must be an integerN)�24isinstance�bytes�	TypeError�int�_lib�RAND_add�len)�buffer�entropys  �RD:\code\apps\devtools\python\user_packages\Python313\site-packages\OpenSSL/rand.py�addrsJ��"�f�e�$�$��6�7�7��g�s�#�#��4�5�5��M�M�&�#�f�+�w�/�c�,�[R"5$)zq25Check whether the PRNG has been seeded with enough data.26 27:return: 1 if the PRNG is seeded enough, 0 otherwise.28)r�RAND_status�rr�statusr,s������r)rr	rr�return�None)rr)�__doc__�29__future__r�warnings�
OpenSSL._utilrr�warn�DeprecationWarningrrrrr�<module>r s4���#��%��
�
�D����0�4r
codekingpro/portable-devtools · Team Ai