Your IP : 3.145.2.6
3
�b�Wq � @ s� d dl Z d dlZd dlZddlmZmZ yd dlZW n ek
rP d dl ZY nX G dd� de
�Ze� Zyej
� ZW n ek
r� dZY nX dd� Zdd � ZdS )
� N� )�long�binary_typec @ sH e Zd Zddd�Zddd�Zdd� Zd d
� Zdd� Zd
d� Zdd� Z dS )�EntropyPoolNc C s� d| _ d | _d| _tj� | _ydd l}|j� | _d| _ W n^ t
k
r� ydd l}|j� | _d| _ W n, t
k
r� dd l
}|j� | _d| _ Y nX Y nX td| j �| _|d k r�| jt|�� d| _tj� | _nd| _d| _d S )Nr � � � TF)�
pool_index�digest� next_byte�
_threadingZLock�lock�hashlibZsha1�hash�hash_len�ImportError�sha�new�md5� bytearray�pool�stir�seeded�os�getpid�seed_pid)�self�seedr r r � r �/usr/lib/python3.6/entropy.py�__init__ s0
zEntropyPool.__init__Fc C sr |s| j j� zNxH|D ]@}| j| jkr,d| _|d@ }| j| j |N <