diff options
author | Robert Kern <robert.kern@gmail.com> | 2020-06-09 11:58:49 -0400 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2020-06-09 11:58:49 -0400 |
commit | 7a82f14075eaf8f59ea3bb2594b71639e938611e (patch) | |
tree | 53d2db5c149bb83232cefd7475e70628cdfcc7b3 /numpy/array_api/tests/test_array_object.py | |
parent | ad30b31af0bb3fbfdc0f11486807edc76cec2680 (diff) | |
download | numpy-7a82f14075eaf8f59ea3bb2594b71639e938611e.tar.gz |
BUG: Ensure SeedSequence 0-padding does not collide with spawn keys
Fixes #16539
The implicit 0-padding that is done to small entropy inputs to make them the
size of the internal pool conflicts with the spawn keys, which start with an
appended 0.
In order to maintain stream compatibility with unspawned `SeedSequence`s, we
explicitly 0-pad short inputs out to the pool size only if the spawn key is
provided, and thus would trigger the bug. This should minimize the impact on
users that were not encountering the bug.
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions