Skip to content

Commit

Permalink
Reduce overhead on random timings (pythonGH-24455)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettinger authored Feb 5, 2021
1 parent d938816 commit d9dda32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ def _test_generator(n, func, args):
from time import perf_counter

t0 = perf_counter()
data = [func(*args) for i in range(n)]
data = [func(*args) for i in _repeat(None, n)]
t1 = perf_counter()

xbar = mean(data)
Expand Down

0 comments on commit d9dda32

Please sign in to comment.