diff options
author | Guillaume Horel <guillaume.horel@gmail.com> | 2019-07-05 21:31:22 -0400 |
---|---|---|
committer | Guillaume Horel <guillaume.horel@gmail.com> | 2019-07-11 10:00:03 -0400 |
commit | 68dc7d1b6c1a014db23e6f6b436bb713abcad09d (patch) | |
tree | 64a85ee883a4539ea9b209146c8afc739d49b4a3 /numpy/random | |
parent | 86d7d20aa771994369367ca680803228660569ee (diff) | |
download | numpy-68dc7d1b6c1a014db23e6f6b436bb713abcad09d.tar.gz |
nogil
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 d6f55c9b9..716aa7859 100644 --- a/numpy/random/generator.pyx +++ b/numpy/random/generator.pyx @@ -704,7 +704,7 @@ cdef class Generator: mask = _gen_mask(set_size) set_size = 1 + mask hash_set = np.full(set_size, <uint64_t>-1, np.uint64) - with self.lock, cython.wraparound(False): + with self.lock, cython.wraparound(False), nogil: 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 |