Ñò
[­Lc           @   sE   d  Z  d d k l Z d d k Z d d k Z d d d „  ƒ  YZ d S(   s   $Id$iÿÿÿÿ(   t   RandomPool_DeprecationWarningNt
   RandomPoolc           B   s‰   e  Z d  Z d d d d d „ Z d „  Z d „  Z d d d „ Z d d „ Z d	 d
 „ Z	 d d „ Z
 d	 d „ Z d „  Z d	 d „ Z RS(   s\   Deprecated.  Use Random.new() instead.

    See http://www.pycrypto.org/randpool-broken
    i    c         C   s;   t  i i ƒ  |  _ | |  _ |  i d |  _ |  i |  _ d  S(   Ni   (   t   Cryptot   Randomt   newt   _RandomPool__rngt   bytest   bitst   entropy(   t   selft   numbytest   ciphert   hasht   file(    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt   __init__&   s    	c         C   s   |  i  i | ƒ S(   N(   R   t   read(   R	   t   N(    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt	   get_bytes.   s    c         C   sS   |  i  | 7_  |  i  d j  o d |  _  n$ |  i  |  i j o |  i |  _  n d  S(   Ni    (   R   R   (   R	   t   nbits(    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt   _updateEntropyEstimate1   s
    i    s   /dev/urandomc         C   s   |  i  i ƒ  d S(   s   Dummy _randomize() functionN(   R   t   flush(   R	   R   t   devname(    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt
   _randomize8   s    c         C   s   |  i  i ƒ  d S(   s   Dummy randomize() functionN(   R   R   (   R	   R   (    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt	   randomize<   s    t    c         C   s   |  i  i ƒ  d S(   s   Dummy stir() functionN(   R   R   (   R	   t   s(    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt   stir@   s    i   c         C   s   |  i  i ƒ  d S(   s   Dummy stir_n() functionN(   R   R   (   R	   R   (    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt   stir_nD   s    c         C   s   |  i  i ƒ  d S(   s   Dummy add_event() functionN(   R   R   (   R	   R   (    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt	   add_eventH   s    c         C   s   |  i  | ƒ S(   s   Dummy getBytes() function(   R   (   R	   R   (    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt   getBytesL   s    c         C   s
   |  i  ƒ  S(   s   Dummy addEvent() function(   R   (   R	   t   eventR   (    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt   addEventP   s    N(   t   __name__t
   __module__t   __doc__t   NoneR   R   R   R   R   R   R   R   R   R   (    (    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyR   !   s   			(    (   t   __revision__t   Crypto.pct_warningsR    t   Crypto.RandomR   t   warningsR   (    (    (    sS   C:\Documents and Settings\red08xgu\Desktop\python_webupdate\Crypto\Util\randpool.pyt   <module>   s   