mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Use random instead of whrandom.
This commit is contained in:
parent
33d7f1a76c
commit
b26a1b4e2b
5 changed files with 18 additions and 18 deletions
|
|
@ -549,7 +549,7 @@ _MainThread()
|
|||
|
||||
def _test():
|
||||
|
||||
import whrandom
|
||||
import random
|
||||
|
||||
class BoundedQueue(_Verbose):
|
||||
|
||||
|
|
@ -592,7 +592,7 @@ def _test():
|
|||
self.quota = quota
|
||||
|
||||
def run(self):
|
||||
from whrandom import random
|
||||
from random import random
|
||||
counter = 0
|
||||
while counter < self.quota:
|
||||
counter = counter + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue