OwlCyberSecurity - MANAGER
Edit File: test_seed_sequence.cpython-38.pyc
U �p�]Y � @ s, d dl Zd dlmZ d dlmZ dd� ZdS )� N)�assert_array_equal)�SeedSequencec C s| ddddgddddgd d ddgd dddgddddgddddgddddgdddd gd!d"d#d$gd%d&d'd(gg } d)d*d+d,gd-d.d/d0gd1d2d3d4gd5d6d7d8gd9d:d;d<gd=d>d?d@gdAdBdCdDgdEdFdGdHgdIdJdKdLgdMdNdOdPgg }dQdRgdSdTgdUdVgdWdXgdYdZgd[d\gd]d^gd_d`gdadbgdcddgg }t | ||�D ]Z\}}}tj|tjde�}t|�}|�t|��}t||� |jt|�tjde�}t||� �qdfS )gz� Check that SeedSequence generates data the same as the C++ reference. https://gist.github.com/imneme/540829265469e673d045 l �>[= i�ʭi�� ixV4l AM5 l �l�p i1 cl �^<1 i�� l O!�p iF�6ii��Mi(��l Nw�U i]e+ivp2pi�v(oi��fl �F�N it��il �m l �-� i�� i��5i^w�Cl �x{ l �9 l I6�; i�|�Il -Ker i�|Li��rl gT<> irT�"l o�j l �P�J l �b�I l �x�W l s-_` id�f3l �M�R i�b"l � n, l �=� l �u l �8 iK�jQl �b< l S�( l E{| iH5lDl !bJ< i�٦Sl � , i�k�Li�&Wi��@l ;: i>f!l �'4 l l l D� i��2l �z9e l �4 l Kp�` l �a$ i^ i��)9l 't�M i��npi�Rpl �2DZ iA�l �DI i~Gi55�l �\| ih � l ^r l �M�R� l � n,swM' l �u2R,` l KZ�"R�q l S�(i�q l H5��+q l �YM'�0 l �k�=�R l �|�D� l >�B�W�P l l]_ l �e�k� l �4.A� l �a${E�Pl �`Sr�P�7 l �K�`EJ�+ l �2DZe8N l �DI x;Bl 55T#LsNp l h �x!� )ZdtypeN) �zip�npZarrayZuint32r Zgenerate_state�lenr Zuint64) ZinputsZoutputsZ outputs64ZseedZexpectedZ expected64Zss�stateZstate64� r �G/usr/lib/python3/dist-packages/numpy/random/tests/test_seed_sequence.py�test_reference_data sP � � � r )Znumpyr Z numpy.testingr Znumpy.random.bit_generatorr r r r r r �<module> s