HEX
Server: Apache
System: Linux iad1-shared-b8-33 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: samfetchero1 (10301780)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/nacl/bindings/__pycache__/randombytes.cpython-310.pyc
o

��a�@sZUddlmZddlmZmZe��Zee	d<dede
fdd�Zdede
de
fd	d
�ZdS)�)�
exceptions)�ffi�lib�randombytes_SEEDBYTES�size�returncCs,t�d|�}t�||�t�||�dd�S)z�
    Returns ``size`` number of random bytes from a cryptographically secure
    random source.

    :param size: int
    :rtype: bytes
    �unsigned char[]N)r�newr�randombytes�buffer)r�buf�r
�;/usr/lib/python3/dist-packages/nacl/bindings/randombytes.pyr
sr
�seedcCsDt|�tkrt�d��t�d|�}t�|||�t�||�dd�S)z�
    Returns ``size`` number of deterministically generated pseudorandom bytes
    from a seed

    :param size: int
    :param seed: bytes
    :rtype: bytes
    z:Deterministic random bytes must be generated from 32 bytesrN)	�lenr�exc�	TypeErrorrr	r�randombytes_buf_deterministicr)rrrr
r
rr#s	�rN)
�naclrr�nacl._sodiumrr�randombytes_seedbytesr�int�__annotations__�bytesr
rr
r
r
r�<module>s