summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorKevin Sheppard <kevin.sheppard@gmail.com>2020-12-05 21:58:09 +0000
committerKevin Sheppard <kevin.k.sheppard@gmail.com>2020-12-11 15:30:50 +0000
commita3bb19df580454a6b98c34e29a00c271c2e411af (patch)
tree395c9987f6deae8531ae760e208e85948cc6716c /doc/release
parent52ecd5a97ce3ff4dad72935b8bf67ba2cfb6908e (diff)
downloadnumpy-a3bb19df580454a6b98c34e29a00c271c2e411af.tar.gz
Revert changes to mtrand
This doesn't qualify for fixing under the NEP.
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/upcoming_changes/17921.compatibility.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/17921.compatibility.rst b/doc/release/upcoming_changes/17921.compatibility.rst
new file mode 100644
index 000000000..a1e2fb2d0
--- /dev/null
+++ b/doc/release/upcoming_changes/17921.compatibility.rst
@@ -0,0 +1,6 @@
+Validate input values in ``Generator.uniform``
+----------------------------------------------
+Checked that ``high - low >= 0`` in ``np.random.Generator.uniform``. Raises
+``ValueError`` if ``low > high``. Previously out-of-order inputs were accepted
+and silently swapped, so that if ``low > high``, the value generated was
+``high + (low - high) * random()``.