summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorLeonaTaric <numpy@huawei.com>2022-12-13 01:11:06 +0800
committerLeonaTaric <numpy@huawei.com>2022-12-13 01:11:06 +0800
commit6a4c83c616a944d92db8087da82a877ad98a0d5f (patch)
treed7c8596eceec2fcaf2bdea0c756979132249f0f7 /numpy/random
parenta24ddad5d1d43ec9bea474abf8068ee6b8db01db (diff)
downloadnumpy-6a4c83c616a944d92db8087da82a877ad98a0d5f.tar.gz
All entropy/seed not None must be non-negative
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/bit_generator.pyx3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/random/bit_generator.pyx b/numpy/random/bit_generator.pyx
index 3da4fabce..9a7917462 100644
--- a/numpy/random/bit_generator.pyx
+++ b/numpy/random/bit_generator.pyx
@@ -260,6 +260,7 @@ cdef class SeedSequence():
----------
entropy : {None, int, sequence[int]}, optional
The entropy for creating a `SeedSequence`.
+ note: all entropy not None must be non-negative.
spawn_key : {(), sequence[int]}, optional
An additional source of entropy based on the position of this
`SeedSequence` in the tree of such objects created with the
@@ -490,6 +491,8 @@ cdef class BitGenerator():
``array_like[ints]`` is passed, then it will be passed to
`~numpy.random.SeedSequence` to derive the initial `BitGenerator` state.
One may also pass in a `SeedSequence` instance.
+
+ note: all seed not None must be non-negative.
Attributes
----------