o
    Â/¾Oî  ã                   @   sZ   d Z dZddlZddlZG dd„ dejƒZi fdd„Zedkr+d	d
„ Zej	dd� dS dS )z?Self-test for the Crypto.Util.randpool.RandomPool wrapper classz$Id$é    Nc                   @   s   e Zd Zdd„ ZdS )Ú
SimpleTestc                 C   sl   ddl m} tj d¡ |ƒ }| d¡}| d¡}|  ||¡ |  |jd¡ | ¡  | 	d¡ | 
d¡ dS )zCrypto.Util.randpool.RandomPoolr   )Ú
RandomPoolzISelfTest: You can ignore the RandomPool_DeprecationWarning that follows.
é   ÚfooN)ÚCrypto.Util.randpoolr   ÚsysÚstderrÚwriteÚ	get_bytesÚassertNotEqualÚentropyÚ	randomizeÚstirÚ	add_event)Úselfr   ÚrpoolÚxÚy© r   úY/var/www/html/env/lib/python3.10/site-packages/Crypto/SelfTest/Random/test_rpoolcompat.pyÚrunTest!   s   


zSimpleTest.runTestN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r       s    r   c                 C   s   t ƒ gS ©N)r   )Úconfigr   r   r   Ú	get_tests0   s   r   Ú__main__c                   C   s   t  tƒ ¡S r   )ÚunittestÚ	TestSuiter   r   r   r   r   Ú<lambda>4   s    r    Úsuite)ÚdefaultTest)
Ú__doc__Ú__revision__r   r   ÚTestCaser   r   r   r!   Úmainr   r   r   r   Ú<module>   s   þ