Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use only non-overflowing length in test/random.jl
After rebasing, the changes introduced by commit ea2bd4b are incompatible with tests added in commit 4d1c138. The problem is that now any array-like r can be passed to rand (not only ranges), and for a random element to be picked out of r, a random integer in the range 1:length(r) is generated, and hence `length(r)` has to be a valid integer (e.g. length(typemin(Int):typemax(Int)) yields OverflowError()).
- Loading branch information