HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/numpy/random/tests/__pycache__/test_seed_sequence.cpython-310.pyc
o

6��a��@s8ddlZddlmZmZddlmZdd�Zdd�ZdS)�N)�assert_array_equal�assert_array_compare)�SeedSequencec	Cs*gd�gd�gd�gd�gd�gd�gd�gd�gd	�gd
�g
}gd�gd�gd
�gd�gd�gd�gd�gd�gd�gd�g
}ddgddgddgddgddgdd gd!d"gd#d$gd%d&gd'd(gg
}t|||�D],\}}}tj|tjd)�}t|�}|�t|��}t||�|jt|�tjd)�}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)lAM5l�l�pi1 cl�^<1)i��	lO!�piF�6ii��M)i(��lNw�Ui]e+ivp2p)i�v(oi��fl�F�Nit��i)l�ml�-�
i�� i��5)i^w�Cl�x{l�9lI6�;)i�|�Il-Keri�|Li��r)lgT<>irT�"lo�jl�P�J)l�b�Il�x�Wls-_`id�f3)l�M�Ri�b"l�n,l�=�	)l�ul�8iK�jQl�b<)lS�(lE{|iH5lDl!bJ<)i�٦Sl� ,i�k�Li�&W)i��@l;:i>f!l�'4)lllD�i��2l�z9e)l�4lKp�`l�a$i^
)i��)9l't�Mi��npi�Rp)l�2DZiA�l�DIi~G)i55�l�\|ih
�l^rl�M�R�l�n,swM'l�u2R,`
lKZ�"R�q	lS�(i�qlH5��+q
l�YM'�0
l�k�=�Rl�|�D�l>�B�W�P
ll]_l�e�k�l�4.A�l�a${E�Pl�`Sr�P�7l�K�`EJ�+l�2DZe8Nl�DIx;Bl55T#LsNplh
�x!���dtypeN)	�zip�np�array�uint32r�generate_state�lenr�uint64)	�inputs�outputs�	outputs64�seed�expected�
expected64�ss�state�state64�r�G/usr/lib/python3/dist-packages/numpy/random/tests/test_seed_sequence.py�test_reference_datasR�
�
�
�rcCsrtd�}td�}ttj|�d�|�d��tjgd�tjd�}ttd��d�|�ttjtddd��d�|�dS)	zD Ensure that the implicit zero-padding does not cause problems.
    �*l��)l�
�lm.<>i���yl�s�*r)r)�	spawn_keyN)rrr�	not_equalrr	r
r)�ss0�ss1�
expected42rrr�test_zero_padding9s �
��r!)	�numpyr�
numpy.testingrr�numpy.randomrrr!rrrr�<module>s
2