8000 no wraparound · numpy/numpy@e6b5200 · GitHub
[go: up one dir, main page]

Skip to content

Commit e6b5200

Browse files
committed
no wraparound
1 parent b3da091 commit e6b5200
Copy full SHA for e6b5200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/random/generator.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ cdef class Generator:
695695
mask = _gen_mask(set_size)
696696
set_size = 1 + mask
697697
hash_set = np.full(set_size, -1, np.uint64)
698-
with 5015 self.lock:
698+
with self.lock, cython.wraparound(False):
699699
for j in range(pop_size_i - size_i, pop_size_i):
700700
val = random_bounded_uint64(&self._bitgen, 0, j, 0, 0)
701701
loc = val & mask

0 commit comments

Comments
 (0)
0