diff options
author | mattip <matti.picus@gmail.com> | 2019-06-16 14:00:00 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-06-26 00:08:23 +0300 |
commit | 02f63e0f36d2f6c81b6720229b05518a573aa5cf (patch) | |
tree | 9e3c5f5a26fc1ae956975677f30a6b94f3aade5c /numpy/random/examples/cython/extending.pyx | |
parent | 37a1ad069a800f5ef98286f25fb3fb632375168d (diff) | |
download | numpy-02f63e0f36d2f6c81b6720229b05518a573aa5cf.tar.gz |
MAINT: remove xoshiro* BitGenerators
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 |