o
    >~#g                     @   s8   d dl Zd dlmZmZ d dlmZ dd Zdd ZdS )    N)assert_array_equalassert_array_compare)SeedSequencec            	      C   s*  g dg dg dg dg dg dg dg dg d	g d
g
} g dg dg dg dg dg dg dg dg dg dg
}ddgddgddgddgddgdd gd!d"gd#d$gd%d&gd'd(gg
}t | ||D ],\}}}tj|tjd)}t|}|t|}t|| |jt|tjd)}t|| qfd*S )+z Check that SeedSequence generates data the same as the C++ reference.

    https://gist.github.com/imneme/540829265469e673d045
    )l   >[= iʭiixV4)l   AM5 l   lp i1 cl   ^<1 )i	l   O!p iF6iiM)i(l   NwU i]e+ivp2p)iv(oifl   FN iti)l   m l   -
 i i5)i^wCl   x{ l   9 l   I6; )i|Il   -Ker i|Lir)l   gT<> irT"l   oj l   PJ )l   bI l   xW l   s-_` idf3)l   MR ib"l    n, l   =	 )l   u l   8 iKjQl   b< )l   S( l   E{| iH5lDl   !bJ< )i٦Sl     , ikLi&W)i@l   ;: i>f!l   '4 )l   l l   D i2l   z9e )l   4 l   Kp` l   a$ i^
)i)9l   'tM inpiRp)l   2DZ iAl   DI  i~G)i55l   \| ih
 l   ^r l   MR l    n,swM' l   u2R,` l   KZ"Rq	 l   S(iq l   H5+q l   YM'0 l   k=R l   |D l   >BWP l   l]_ l   ek l   4.A l   a${EPl   `SrP7 l   K`EJ+ l   2DZe8N l   DI x;Bl   55T#LsNp l   h
x! dtypeN)	zipnparrayuint32r   generate_statelenr   uint64)	inputsoutputs	outputs64seedexpected
expected64ssstatestate64 r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/numpy/random/tests/test_seed_sequence.pytest_reference_data   sR   
r   c                  C   sr   t d} t d}ttj| d|d tjg dtjd}tt dd| ttjt dddd| dS )	zD Ensure that the implicit zero-padding does not cause problems.
    *   l           )l   
 l   m.<> iyl   s* r   )r   )	spawn_keyN)r   r   r   	not_equalr   r	   r
   r   )ss0ss1
expected42r   r   r   test_zero_padding9   s    
r!   )	numpyr   numpy.testingr   r   numpy.randomr   r   r!   r   r   r   r   <module>   s
    2