diff options
Diffstat (limited to 'numpy/random/examples/cython')
-rw-r--r-- | numpy/random/examples/cython/extending.pyx | 6 | ||||
-rw-r--r-- | numpy/random/examples/cython/extending_distributions.pyx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/numpy/random/examples/cython/extending.pyx b/numpy/random/examples/cython/extending.pyx index b2418e93c..a6a4ba4bf 100644 --- a/numpy/random/examples/cython/extending.pyx +++ b/numpy/random/examples/cython/extending.pyx @@ -9,7 +9,7 @@ cimport numpy as np cimport cython from numpy.random.common cimport bitgen_t -from numpy.random import Xoshiro256 +from numpy.random import PCG64 np.import_array() @@ -23,7 +23,7 @@ def uniform_mean(Py_ssize_t n): cdef double[::1] random_values cdef np.ndarray randoms - x = Xoshiro256() + x = PCG64() capsule = x.capsule if not PyCapsule_IsValid(capsule, capsule_name): raise ValueError("Invalid pointer to anon_func_state") @@ -64,7 +64,7 @@ def bounded_uints(uint32_t lb, uint32_t ub, Py_ssize_t n): cdef uint32_t[::1] out cdef const char *capsule_name = "BitGenerator" - x = Xoshiro256() + x = PCG64() out = np.empty(n, dtype=np.uint32) capsule = x.capsule 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): |