summaryrefslogtreecommitdiff
path: root/numpy/random/_philox.pyx
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-10-13 09:13:05 +0300
committermattip <matti.picus@gmail.com>2019-10-13 09:13:05 +0300
commit185efe1bb746ad5b6ac23d106df12ad35a207d49 (patch)
tree737b9dd102c576756910764aa12da74c099b50b5 /numpy/random/_philox.pyx
parent260bf67640724915ffefd0a5a7133318ece149da (diff)
downloadnumpy-185efe1bb746ad5b6ac23d106df12ad35a207d49.tar.gz
DOC: clean up for moved references, remove ISeedSequence
Diffstat (limited to 'numpy/random/_philox.pyx')
-rw-r--r--numpy/random/_philox.pyx15
1 files changed, 7 insertions, 8 deletions
diff --git a/numpy/random/_philox.pyx b/numpy/random/_philox.pyx
index 4154e042c..9f136c32f 100644
--- a/numpy/random/_philox.pyx
+++ b/numpy/random/_philox.pyx
@@ -64,21 +64,20 @@ cdef class Philox(BitGenerator):
Parameters
----------
- seed : {None, int, array_like[ints], ISeedSequence}, optional
+ seed : {None, int, array_like[ints], SeedSequence}, optional
A seed to initialize the `BitGenerator`. If None, then fresh,
unpredictable entropy will be pulled from the OS. If an ``int`` or
``array_like[ints]`` is passed, then it will be passed to
`SeedSequence` to derive the initial `BitGenerator` state. One may also
- pass in an implementor of the `ISeedSequence` interface like
- `SeedSequence`.
+ pass in a `SeedSequence` instance.
counter : {None, int, array_like}, optional
Counter to use in the Philox state. Can be either
a Python int (long in 2.x) in [0, 2**256) or a 4-element uint64 array.
If not provided, the RNG is initialized at 0.
key : {None, int, array_like}, optional
- Key to use in the Philox state. Unlike seed, the value in key is
+ Key to use in the Philox state. Unlike ``seed``, the value in key is
directly set. Can be either a Python int in [0, 2**128) or a 2-element
- uint64 array. `key` and `seed` cannot both be used.
+ uint64 array. `key` and ``seed`` cannot both be used.
Attributes
----------
@@ -110,10 +109,10 @@ cdef class Philox(BitGenerator):
randoms produced. The second is a key which determined the sequence
produced. Using different keys produces independent sequences.
- The input seed is processed by `SeedSequence` to generate the key. The
+ The input ``seed`` is processed by `SeedSequence` to generate the key. The
counter is set to 0.
- Alternately, one can omit the seed parameter and set the ``key`` and
+ Alternately, one can omit the ``seed`` parameter and set the ``key`` and
``counter`` directly.
**Parallel Features**
@@ -148,7 +147,7 @@ cdef class Philox(BitGenerator):
**Compatibility Guarantee**
- ``Philox`` makes a guarantee that a fixed seed will always produce
+ ``Philox`` makes a guarantee that a fixed ``seed`` will always produce
the same random integer stream.
Examples