Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
Crypto
/
Random
/
__pycache__
/
File Content:
random.cpython-37.pyc
B ��cs � @ s� d Z dZdddddddgZd d lmZ d dlZejd dkrRejd d krRd dlT G dd� de�Z e � Z e jZe jZe j Z e jZe jZe jZd dlmZmZmZmZ dS )zHA cryptographically strong version of Python's standard "random" module.z$Id$�StrongRandom�getrandbits� randrange�randint�choice�shuffle�sample� )�RandomN� � )�*c @ sF e Zd Zddd�Zdd� Zdd� Zdd � Zd d� Zdd � Zdd� Z dS )r Nc C sV |d kr|d krd | _ n:|d k r0|d kr0|| _ n"|d krJ|d k rJ|j| _ ntd��d S )Nz(Cannot specify both 'rng' and 'randfunc')� _randfunc�read� ValueError)�self�rngZrandfunc� r �G/opt/alt/python37/lib64/python3.7/site-packages/Crypto/Random/random.py�__init__$ s zStrongRandom.__init__c C s: | j dkrt�� j| _ d|>