diff --git a/asv_bench/benchmarks/__init__.py b/asv_bench/benchmarks/__init__.py index 4a9613ce026..b8a54f71a42 100644 --- a/asv_bench/benchmarks/__init__.py +++ b/asv_bench/benchmarks/__init__.py @@ -48,7 +48,7 @@ def randn(shape, frac_nan=None, chunks=None, seed=0): def randint(low, high=None, size=None, frac_minus=None, seed=0): rng = np.random.default_rng(seed) - x = rng.randint(low, high, size) + x = rng.integers(low, high, size) if frac_minus is not None: inds = rng.choice(range(x.size), int(x.size * frac_minus)) x.flat[inds] = -1