3
���h� � @ sx d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl
mZ eeeed�Zdd d
�Z
ddd�Zdd
d�ZdS )� )�RandomState)�Philox)�PCG64)�SFC64)� Generator)�MT19937)r r r r r c C s, | t krt | }ntt| �d ��t|� �S )a
Pickling helper function that returns a Generator object
Parameters
----------
bit_generator_name: str
String containing the core BitGenerator
Returns
-------
rg: Generator
Generator using the named core BitGenerator
z$ is not a known BitGenerator module.)�
BitGenerators�
ValueError�strr )�bit_generator_name�
bit_generator� r
�5/tmp/pip-build-5_djhm0z/numpy/numpy/random/_pickle.py�__generator_ctor s
r c C s( | t krt | }ntt| �d ��|� S )a
Pickling helper function that returns a bit generator object
Parameters
----------
bit_generator_name: str
String containing the name of the BitGenerator
Returns
-------
bit_generator: BitGenerator
BitGenerator instance
z$ is not a known BitGenerator module.)r r r
)r r r
r
r �__bit_generator_ctor' |