summaryrefslogtreecommitdiff
path: root/numpy/random/examples/cython/extending_distributions.pyx
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-06-16 14:00:00 +0300
committermattip <matti.picus@gmail.com>2019-06-26 00:08:23 +0300
commit02f63e0f36d2f6c81b6720229b05518a573aa5cf (patch)
tree9e3c5f5a26fc1ae956975677f30a6b94f3aade5c /numpy/random/examples/cython/extending_distributions.pyx
parent37a1ad069a800f5ef98286f25fb3fb632375168d (diff)
downloadnumpy-02f63e0f36d2f6c81b6720229b05518a573aa5cf.tar.gz
MAINT: remove xoshiro* BitGenerators
Diffstat (limited to 'numpy/random/examples/cython/extending_distributions.pyx')
-rw-r--r--numpy/random/examples/cython/extending_distributions.pyx6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/random/examples/cython/extending_distributions.pyx b/numpy/random/examples/cython/extending_distributions.pyx
index 89477eb6d..3cefec97e 100644
--- a/numpy/random/examples/cython/extending_distributions.pyx
+++ b/numpy/random/examples/cython/extending_distributions.pyx
@@ -10,7 +10,7 @@ cimport cython
from cpython.pycapsule cimport PyCapsule_IsValid, PyCapsule_GetPointer
from numpy.random.common cimport *
from numpy.random.distributions cimport random_gauss_zig
-from numpy.random import Xoshiro256
+from numpy.random import PCG64
@cython.boundscheck(False)
@@ -21,7 +21,7 @@ def normals_zig(Py_ssize_t n):
cdef const char *capsule_name = "BitGenerator"
cdef double[::1] random_values
- x = Xoshiro256()
+ x = PCG64()
capsule = x.capsule
if not PyCapsule_IsValid(capsule, capsule_name):
raise ValueError("Invalid pointer to anon_func_state")
@@ -43,7 +43,7 @@ def uniforms(Py_ssize_t n):
cdef const char *capsule_name = "BitGenerator"
cdef double[::1] random_values
- x = Xoshiro256()
+ x = PCG64()
capsule = x.capsule
# Optional check that the capsule if from a BitGenerator
if not PyCapsule_IsValid(capsule, capsule_name):