summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2020-06-10 12:40:45 -0400
committerRobert Kern <robert.kern@gmail.com>2020-06-10 12:40:45 -0400
commite1db72c2c99d23982551def864b24d277b297aa6 (patch)
tree93d6b115755cdff5ef72f966ce2a7dcaaa75b55c
parent7a82f14075eaf8f59ea3bb2594b71639e938611e (diff)
downloadnumpy-fix/seed-sequence-zeros.tar.gz
DOC: Add release note.fix/seed-sequence-zeros
-rw-r--r--doc/source/release/1.19.0-notes.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/source/release/1.19.0-notes.rst b/doc/source/release/1.19.0-notes.rst
index 35aaf8e4a..b40969550 100644
--- a/doc/source/release/1.19.0-notes.rst
+++ b/doc/source/release/1.19.0-notes.rst
@@ -267,6 +267,19 @@ of users.
(`gh-16068 <https://github.com/numpy/numpy/pull/16068>`__)
+``SeedSequence`` with small seeds no longer conflicts with spawning
+-------------------------------------------------------------------
+Small seeds (less than ``2**96``) are implicitly 0-padded out to 128 bits, the
+size of the internal entropy pool. When spawned, the spawn key was concatenated
+before the 0-padding. Since the first spawn key is ``(0,)``, small seeds
+before the spawn created the same states as the first spawned ``SeedSequence``.
+Now, the seed is explicitly 0-padded out to the internal pool size before
+concatenating the spawn key. Spawned ``SeedSequences`` will produce different
+results than in the previous release. Unspawned ``SeedSequences`` will still
+produce the same results.
+
+(`gh-16551 <https://github.com/numpy/numpy/pull/16551>`__)
+
C API changes
=============