diff options
author | Guillaume Horel <guillaume.horel@gmail.com> | 2019-06-21 21:13:19 -0400 |
---|---|---|
committer | Guillaume Horel <guillaume.horel@gmail.com> | 2019-07-11 10:00:03 -0400 |
commit | 6ca55c464b7299abdb97271bcc69e288e59c557e (patch) | |
tree | b5d7a8fe70aa72a039213ce4cc5734db3653ee8b /numpy/random | |
parent | 906808d014c473a843249f89448032cc499edce6 (diff) | |
download | numpy-6ca55c464b7299abdb97271bcc69e288e59c557e.tar.gz |
no wraparound
Diffstat (limited to 'numpy/random')
-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 548d46db0..45daf7d7e 100644 --- a/numpy/random/generator.pyx +++ b/numpy/random/generator.pyx @@ -707,7 +707,7 @@ cdef class Generator: mask = _gen_mask(set_size) set_size = 1 + mask hash_set = np.full(set_size, -1, np.uint64) - with self.lock: + with self.lock, cython.wraparound(False): for j in range(pop_size_i - size_i, pop_size_i): val = random_bounded_uint64(&self._bitgen, 0, j, 0, 0) loc = val & mask |