8000 Use random instead of whrandom · python/cpython@a974561 · GitHub
[go: up one dir, main page]

Skip to content

Commit a974561

Browse files
committed
Use random instead of whrandom
1 parent 9a62448 commit a974561

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/sortperf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import sys
99
import time
10-
import whrandom
10+
import random
1111
import marshal
1212
import tempfile
1313
import operator
@@ -23,7 +23,7 @@ def randrange(n):
2323
except IOError:
2424
result = []
2525
for i in range(n):
26-
result.append(whrandom.random())
26+
result.append(random.random())
2727
try:
2828
try:
2929
fp = open(fn, "wb")
@@ -44,7 +44,7 @@ def randrange(n):
4444
##assert len(result) == n
4545
# Shuffle it a bit...
4646
for i in range(10):
47-
i = whrandom.randint(0, n-1)
47+
i = random.randrange(0, n)
4848
temp = result[:i]
4949
del result[:i]
5050
temp.reverse()

0 commit comments

Comments
 (0)
0