Viewing File: /usr/lib64/python2.7/site-packages/Crypto/Random/OSRNG/posix.pyc

ó
Â/¾Oc@svdZdgZddlZddlZddlZddlmZddlmZdefd„ƒYZ	d„Z
dS(s$Id$t
DevURandomRNGiÿÿÿÿN(tBaseRNG(tbcBs&eZdd„Zd„Zd„ZRS(cCsž|dkrd|_n	||_t|jddƒ}tj|jƒƒtj}tj|ƒs„|j	ƒt
d|jfƒ‚n||_tj
|ƒdS(Ns/dev/urandomtrbis$%r is not a character special device(tNonetnametopentostfstattfilenotstattST_MODEtS_ISCHRtcloset	TypeErrort_DevURandomRNG__fileRt__init__(tselftdevnametftfmode((s?/usr/lib64/python2.7/site-packages/Crypto/Random/OSRNG/posix.pyR%s	
	cCs|jjƒdS(N(RR
(R((s?/usr/lib64/python2.7/site-packages/Crypto/Random/OSRNG/posix.pyt_close6scCsªtdƒ}x—t|ƒ|kr¥y |jj|t|ƒƒ}Wn.tk
rq}|jtjkrkqn‚nX|dkr‚|St|ƒdkr˜|S||7}qW|S(Nti(RtlenRtreadtIOErrorterrnotEINTRR(RtNtdatatdte((s?/usr/lib64/python2.7/site-packages/Crypto/Random/OSRNG/posix.pyt_read9s N(t__name__t
__module__RRRR (((s?/usr/lib64/python2.7/site-packages/Crypto/Random/OSRNG/posix.pyR#s	cOs
t||ŽS(N(R(targstkwargs((s?/usr/lib64/python2.7/site-packages/Crypto/Random/OSRNG/posix.pytnewRs(t__revision__t__all__RRR
trng_baseRtCrypto.Util.py3compatRRR%(((s?/usr/lib64/python2.7/site-packages/Crypto/Random/OSRNG/posix.pyt<module>s	/
Back to Directory File Manager