HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib64/python3.6/site-packages/M2Crypto/__pycache__/BN.cpython-36.pyc
3

x��Y��@sLddlmZddlmZmZejr.ddlmZd
dd�Zdd�Z	d	d
�Z
dS)�)�absolute_import)�m2�util)�Optional�cCstj|||�S)ah
    Generate cryptographically strong random number.

    :param bits:   Length of random number in bits.
    :param top:    If -1, the most significant bit can be 0. If 0, the most
                   significant bit is 1, and if 1, the two most significant
                   bits will be 1.
    :param bottom: If bottom is true, the number will be odd.
    )rZbn_rand)�bits�topZbottom�r	�/usr/lib64/python3.6/BN.py�randsrcCs
tj|�S)z�
    Generate a random number in a range.

    :param range: Upper limit for range.
    :return:      A random number in the range [0, range)
    )r�
bn_rand_range)�ranger	r	r
�
rand_rangesrcCsXddl}|jdtdd�d}t|�}g}x$t|�D]}||tj|�g7}q2Wdj|�S)z�
    Return a random filename, which is simply a string where all
    the characters are from the set [a-zA-Z0-9].

    :param length: Length of filename to return.
    :return:       random filename string
    rNz7Don't use BN.randfname(), use tempfile methods instead.�)�
stacklevelZ?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890�)�warnings�warn�DeprecationWarning�lenr
rr�join)ZlengthrZlettersZ
lettersLenZfname�xr	r	r
�	randfname's	
rN���)rr)Z
__future__rZM2CryptorrZpy27plusZtypingrrrrr	r	r	r
�<module>s