summaryrefslogtreecommitdiff
path: root/numpy/random/examples/numba
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/examples/numba')
-rw-r--r--numpy/random/examples/numba/extending.py6
-rw-r--r--numpy/random/examples/numba/extending_distributions.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/numpy/random/examples/numba/extending.py b/numpy/random/examples/numba/extending.py
index a1a2b3d12..d41c2d76f 100644
--- a/numpy/random/examples/numba/extending.py
+++ b/numpy/random/examples/numba/extending.py
@@ -3,9 +3,9 @@ import datetime as dt
import numpy as np
import numba as nb
-from numpy.random import Xoshiro256
+from numpy.random import PCG64
-x = Xoshiro256()
+x = PCG64()
f = x.ctypes.next_uint32
s = x.ctypes.state
@@ -68,7 +68,7 @@ normalsj(1, state_addr)
start = dt.datetime.now()
normalsj(1000000, state_addr)
ms = 1000 * (dt.datetime.now() - start).total_seconds()
-print('1,000,000 Polar-transform (numba/Xoshiro256) randoms in '
+print('1,000,000 Polar-transform (numba/PCG64) randoms in '
'{ms:0.1f}ms'.format(ms=ms))
start = dt.datetime.now()
diff --git a/numpy/random/examples/numba/extending_distributions.py b/numpy/random/examples/numba/extending_distributions.py
index 1172e51de..9233ccced 100644
--- a/numpy/random/examples/numba/extending_distributions.py
+++ b/numpy/random/examples/numba/extending_distributions.py
@@ -24,7 +24,7 @@ import numba as nb
import numpy as np
from cffi import FFI
-from numpy.random import Xoshiro256
+from numpy.random import PCG64
ffi = FFI()
if os.path.exists('./distributions.dll'):
@@ -37,7 +37,7 @@ else:
ffi.cdef("""
double random_gauss_zig(void *bitgen_state);
""")
-x = Xoshiro256()
+x = PCG64()
xffi = x.cffi
bit_generator = xffi.bit_generator