
    G/Ph                     6    d dl Zd dlmZmZ d dlmZ d Zd ZdS )    N)assert_array_equalassert_array_compare)SeedSequencec                  4   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        )          }t	          |          }|                    t          |                    }t          ||           |                    t          |          t          j        )          }t          ||           d*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state64s	            e/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/numpy/random/tests/test_seed_sequence.pytest_reference_datar      s    	655888777666888666888888777777F 	877888888777777777777666666555G 
12	34	34	23	23	34	12	23	01	34I '*&'9&E&E 0 0"h
8HBI666$!!#h--005(+++##C
OO29#EE7J////0 0    c                     t          d          } t          d          }t          t          j        |                     d          |                    d                     t          j        g dt          j                  }t          t          d                              d          |           t          t          j        t          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
expected42s      r   test_zero_paddingr$   9   s    
 r

C
x
 
 C
11   JJJ "	+ + +J|B''66q99:FFF 
R4(((77::    r   )	numpyr
   numpy.testingr   r   numpy.randomr   r   r$    r   r   <module>r)      sd        B B B B B B B B % % % % % %/0 /0 /0d    r   