You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Legacy randint with low=2**32 does not reproduce NumPy <1.17 values #14189
The legacy randint in NumPy 1.17.0 does not reproduce values from previous versions when low=2**32. I tested against 1.16.4 and 1.15.4. It does work for other values of low; I am showing 2**31 and 2**33 below. Same behavior with seed 1.
Activity
dev: Fix tests (#430)
mattip commentedon Sep 12, 2019
@bashtage ping. This seems like a regression in the legacy implementation
bashtage commentedon Sep 13, 2019
Which OS are you on? Might matter since legacy used C long for integer types.
bashtage commentedon Sep 13, 2019
Worked out it is Linux since you can't use 2**33.
bashtage commentedon Sep 13, 2019
Fix is in bashtage/randomgen#184. Will port after it passes everywhere.
BUG: Fix randint when range is 2**32