Viewing File: /usr/lib64/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.pyc
ó
Bd\Rc @ sM d Z d d l Z e j d d k rE e j d d k rE d d l Tn d d l Z d d l Z d d l Z d d l Z d d l m Z d d l
m Z d d l m
Z
d
e f d „ ƒ YZ d e f d
„ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ e j ƒ Z d a d „ Z d „ Z d „ Z d „ Z d S( s $Id$iÿÿÿÿNi i i ( t *( t floor( t OSRNG( t FortunaAccumulatort _EntropySourcec B s e Z d „ Z d „ Z RS( c C s | | _ | | _ d | _ d S( Ni ( t _fortunat _src_numt _pool_num( t selft accumulatort src_num( ( sD /usr/lib64/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.pyt __init__) s c C s4 | j j | j | j | ƒ | j d d @| _ d S( Ni i ( R t add_random_eventR R ( R t data( ( sD /usr/lib64/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.pyt feed. s ( t __name__t
__module__R R ( ( ( sD /usr/lib64/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.pyR ( s t _EntropyCollectorc B s# e Z d „ Z d „ Z d „ Z RS( c C sI t j ƒ | _ t | d ƒ | _ t | d ƒ | _ t | d ƒ | _ d S( Niÿ iþ iý ( R t newt _osrngR t _osrng_est _time_est _clock_es( R R ( ( sD /usr/lib64/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.pyR 4 s c C sz xf t d ƒ D]X } | j j d ƒ } x7 t d ƒ D]) } | j j | | d | d d !ƒ q2 Wd } q
W| j j ƒ d S( Ni i i i ( t rangeR t readR R t Nonet flush( R t it blockt p( ( sD /usr/lib64/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.pyt reinit: s '
c C s˜ | j j | j j d ƒ ƒ t j ƒ } | j j t j d t d | t | ƒ ƒ ƒ ƒ t j
ƒ } | j j t j d t d | t | ƒ ƒ ƒ ƒ d S( Ni s @Ii i i @i @( R R R R t timeR t structt packt intR t clockR ( R t t( ( sD /usr/lib64/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.pyt collectD s
0( R R R R R% ( ( ( sD /usr/lib64/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.pyR 2 s
t _UserFriendlyRNGc B s>