summaryrefslogtreecommitdiff
path: root/doc/source/reference/random/multithreading.rst
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-04-14 20:17:41 +0300
committermattip <matti.picus@gmail.com>2019-05-20 18:50:35 +0300
commit86212292e5c779447cef25f25e172b051e863861 (patch)
tree90a2a93f9e3a53e65610a44fa8f82e90f99c7b55 /doc/source/reference/random/multithreading.rst
parent2deddc88880c2325288b9e751112e3f758b06cd8 (diff)
downloadnumpy-86212292e5c779447cef25f25e172b051e863861.tar.gz
DOC: tighten up documentation, add a table of comparison
Diffstat (limited to 'doc/source/reference/random/multithreading.rst')
-rw-r--r--doc/source/reference/random/multithreading.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/source/reference/random/multithreading.rst b/doc/source/reference/random/multithreading.rst
index f7762b73a..d35cafe06 100644
--- a/doc/source/reference/random/multithreading.rst
+++ b/doc/source/reference/random/multithreading.rst
@@ -9,10 +9,11 @@ these requirements.
This example makes use of Python 3 :mod:`concurrent.futures` to fill an array
using multiple threads. Threads are long-lived so that repeated calls do not
-require any additional overheads from thread creation. The underlying PRNG is
-xorshift2014 which is fast, has a long period and supports using ``jump`` to
-advance the state. The random numbers generated are reproducible in the sense
-that the same seed will produce the same outputs.
+require any additional overheads from thread creation. The underlying
+BitGenerator is `Xorshift1024` which is fast, has a long period and supports
+using `Xorshift1024.jumped` to return a new generator while advancing the
+state. The random numbers generated are reproducible in the sense that the same
+seed will produce the same outputs.
.. code-block:: ipython
@@ -84,7 +85,7 @@ the time required to generate using a single thread.
4
32.8 ms ± 2.71 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
-The single threaded call directly uses the PRNG.
+The single threaded call directly uses the BitGenerator.
.. code-block:: ipython