diff options
Diffstat (limited to 'numpy/random/examples/cython/extending.pyx')
-rw-r--r-- | numpy/random/examples/cython/extending.pyx | 6 |
1 files changed, 3 insertions, 3 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 |