ok
Direktori : /proc/thread-self/root/proc/self/root/usr/lib64/python2.7/site-packages/dns/ |
Current File : //proc/thread-self/root/proc/self/root/usr/lib64/python2.7/site-packages/dns/entropy.pyc |
� !`Nc @ s} d d l Z d d l Z y d d l Z Wn e k rG d d l Z n Xd e f d � � YZ e � Z d � Z d � Z d S( i����Nt EntropyPoolc B sM e Z d d � Z e d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s� d | _ d | _ d | _ t j � | _ y( d d l } | j � | _ d | _ Wn] y( d d l } | j � | _ d | _ Wq� d d l } | j � | _ d | _ q� Xn Xd | j | _ | d k r� | j | � t | _ n t | _ d S( Ni i����i i s ( t pool_indext Nonet digestt next_bytet _threadingt Lockt lockt hashlibt sha1t hasht hash_lent shat newt md5t poolt stirt Truet seededt False( t selft seedR R R ( ( s1 /usr/lib64/python2.7/site-packages/dns/entropy.pyt __init__ s, c C s� | s | j j � n z� g | j D] } t | � ^ q# } x^ | D]V } | j | j k rf d | _ n t | � d @} | | j c | N<| j d 7_ qB Wd j g | D] } t | � ^ q� � | _ Wd | s� | j j � n Xd S( Ni i� i t ( R t acquireR t ordR R t joint chrt release( R t entropyt already_lockedt ct bytest b( ( s1 /usr/lib64/python2.7/site-packages/dns/entropy.pyR 1 s " /c C s� | j s� y t j d � } WnZ y7 t d d d � } z | j d � } Wd | j � XWqy t t j � � } qy Xn Xt | _ | j | t � n d S( Ni s /dev/urandomt ri ( R t ost urandomt filet readt closet strt timeR R ( R R R"