B Â/¾OÐ ã@s2dZddlmZddlZddlZGdd„dƒZdS)z$Id$é)ÚRandomPool_DeprecationWarningNc@sneZdZdZddd„Zdd„Zdd „Zdd d „Zddd„Zddd„Z d dd„Z d!dd„Z dd„Z d"dd„Z dS)#Ú RandomPoolz\Deprecated. Use Random.new() instead. See http://www.pycrypto.org/randpool-broken é NcCs6t dt¡tj ¡|_||_|jd|_|j|_ dS)NzqThis application uses RandomPool, which is BROKEN in older releases. See http://www.pycrypto.org/randpool-brokené) ÚwarningsÚwarnrÚCryptoZRandomÚnewÚ_RandomPool__rngÚbytesÚbitsÚentropy)ÚselfZnumbytesZcipherÚhashÚfile©rúG/opt/alt/python37/lib64/python3.7/site-packages/Crypto/Util/randpool.pyÚ__init__&s   zRandomPool.__init__cCs |j |¡S)N)r Úread)rÚNrrrÚ get_bytes.szRandomPool.get_bytescCs8|j|7_|jdkr d|_n|j|jkr4|j|_dS)Nr)r r )rZnbitsrrrÚ_updateEntropyEstimate1s   z!RandomPool._updateEntropyEstimaterú /dev/urandomcCs|j ¡dS)zDummy _randomize() functionN)r Úflush)rrZdevnamerrrÚ _randomize8szRandomPool._randomizecCs|j ¡dS)zDummy randomize() functionN)r r)rrrrrÚ randomize<szRandomPool.randomizeÚcCs|j ¡dS)zDummy stir() functionN)r r)rÚsrrrÚstir@szRandomPool.stirécCs|j ¡dS)zDummy stir_n() functionN)r r)rrrrrÚstir_nDszRandomPool.stir_ncCs|j ¡dS)zDummy add_event() functionN)r r)rrrrrÚ add_eventHszRandomPool.add_eventcCs | |¡S)zDummy getBytes() function)r)rrrrrÚgetBytesLszRandomPool.getBytescCs| ¡S)zDummy addEvent() function)r!)rZeventrrrrÚaddEventPszRandomPool.addEvent)rNNN)rr)r)r)r)r)r)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrr r!r"r#rrrrr!s      r)Z __revision__ZCrypto.pct_warningsrZ Crypto.RandomrrrrrrrÚs