Skip to content

Commit

Permalink
Revert removal of a method call
Browse files Browse the repository at this point in the history
  • Loading branch information
eumiro committed Aug 3, 2023
1 parent 8276f58 commit c7580d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_utils/perf/perf_kit/repeat_and_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import contextlib
import functools
import math
import random
import signal
import time
Expand Down Expand Up @@ -119,7 +120,7 @@ def monte_carlo(total=10000):
for _ in range(0, total):
x_val = random.random() ** 2
y_val = random.random() ** 2
if x_val + y_val < 1:
if math.sqrt(x_val + y_val) < 1:
inside += 1

return (inside / total) * 4
Expand Down

0 comments on commit c7580d1

Please sign in to comment.