It looks like nightly cython warns: ``` warning: numpy/random/mtrand.pyx:4966:29: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined ``` And indeed, there's a negative index: https://github.com/numpy/numpy/blob/ba9205f26a5640d8be4b05de3e0db2cbc00bbd0a/numpy/random/mtrand.pyx#L4966 But the file is globally set to have `wraparound=False`.
Activity
rkern commentedon Dec 10, 2024
And to confirm, yes, this is fixable per NEP 19.
MAINT: random: Tweak module code in mtrand.pyx to fix a Cython warning.
MAINT: random: Tweak module code in mtrand.pyx to fix a Cython warning.