add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
a

Z��^c@s<ddlZddlZddlZdd�Zdd�Zdd�Zdd	�Zejd
Zedvrte	de�e	d
ed�e
ded�n�edkr�eej�dkr�ddlZe	dejd�e
dejde
eejd��n�edk�reej�dk�rddlZe	dejd�e
dejd�nVeee��rLee
ee�d��rLe
ee�Ze
dee
ee��ne	de�e
de�z
e�WnRe�y�e
�e
d�e
d�e
d�e
d�e
d �e
d!�e
��Yn0e�ed"d#d$�ed%d&d$�ed'd(d$�ed)d*d$�ed+d,d$�ed-d.d$�ed/d0d$�ee�jd1d$�ed2d3d$�dS)4iNcCstd��dS)Nzeek, creatorFunc not overridden)ZRuntimeError�rr�)/usr/lib64/python3.9/test/time_hashlib.py�creatorFunc	src	Csfd|d}d|}t}t��}t|�D]}||���}q(t��}td||d|dt|�d|�dS)N�ٞisZ�%2.2f�seconds�xZbytes)r�time�perf_counter�range�digest�print�len)	�scale�nameZ
iterationsZlongStrZlocalCF�start�fr�endrrr�test_scaled_msgsrcCs<t��}td�D]
}t�}qt��}td||dd�dS)N� Nrrz[20000 creations])rrr	rr)rrZdrrrr�test_creates
rcCs@t��}td�D]}t���}qt��}td||dd�dS)Nrrrz[20000 "" digests])rrr	rr
r)rrrrrrr�	test_zero s
ri)Z_md5Z_shazimport zcreatorFunc = z.newztesting speed of oldzlegacy interface�_hashlibizcreatorFunc = _hashlib.%siztesting speed of _hashlib.%sz+creatorFunc = lambda x=_hashlib.new : x(%r)z!testing speed of _hashlib.new(%r)Z__call__ztesting speed of hashlib.z*creatorFunc = lambda x=hashlib.new : x(%r)z testing speed of hashlib.new(%r)z8pass argument(s) naming the hash to run a speed test on:z6 '_md5' and '_sha' test the legacy builtin md5 and shaz= '_hashlib' 'openssl_hName' 'fast' tests the builtin _hashlibz6 '_hashlib' 'hName' tests builtin _hashlib.new(shaFOO)z> 'hName' tests the hashlib.hName() implementation if it existsz.         otherwise it uses hashlib.new(hName).rz[huge data])r
ri|)z[large data]i&z
[medium data]i�z[4*small data]iPz[3*small data]i�z[2*small data]ijz[small data]z[digest_size data]i
z[tiny data])ZsysrZhashlibrrrrZargvZhNameZexecrrrZgetattrZhasattrZ
ValueErrorZdigest_sizerrrrZ<module>s\

"