Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
Crypto
/
SelfTest
/
Random
/
__pycache__
/
File Content:
test__UserFriendlyRNG.cpython-37.pyc
B ��c( � @ s� d Z dZddlZddlZddlZddlZddlZddlZejd dkr\ejd dkr\ddl T ddl T yddlZW n ek r� dZY nX ddl ZddlZG dd� dej�Zd d � ZG dd� dej�Zi fd d�Zedkr�dd� Zejdd� dS )z0Self-test suite for generic Crypto.Random stuff z$Id$� N� � )�*c @ s e Zd Zdd� Zdd� ZdS )�RNGForkTestc C s0 t jj�� }|j�� z|jjS |j�� X dS )z� Get `FortunaAccumulator.reseed_count`, the global count of the number of times that the PRNG has been reseeded. N) �Crypto�Random�_UserFriendlyRNG�_get_singleton�_lock�acquireZ_faZreseed_count�release)�selfZ rng_singleton� r �_/opt/alt/python37/lib64/python3.7/site-packages/Crypto/SelfTest/Random/test__UserFriendlyRNG.py�_get_reseed_count2 s zRNGForkTest._get_reseed_countc C sb t j�d�rttd�rt�d S t�d� | �� }t j j�� � � t j �d� | �� }| �||� g }x�td�D ]�}t�� \}}t�� dkr�t�|� t�|d�}t j �� t j �d�}|�|� |�� t�d� t�|� |�t�|d �� qnW g } i } x6|D ].}t�|�� �}| �|� d| |<