diff options
Diffstat (limited to 'numpy/random/generator.pyx')
-rw-r--r-- | numpy/random/generator.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/generator.pyx b/numpy/random/generator.pyx index ae920fc9f..ca5d4293c 100644 --- a/numpy/random/generator.pyx +++ b/numpy/random/generator.pyx @@ -3872,7 +3872,7 @@ cdef class Generator: [3, 4, 5]]) """ - if isinstance(x, (int, long, np.integer)): + if isinstance(x, (int, np.integer)): arr = np.arange(x) self.shuffle(arr) return arr |