summaryrefslogtreecommitdiffstats
path: root/Demo/threads/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/threads/sync.py')
-rw-r--r--Demo/threads/sync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/threads/sync.py b/Demo/threads/sync.py
index 3044724..3ad0fff 100644
--- a/Demo/threads/sync.py
+++ b/Demo/threads/sync.py
@@ -566,13 +566,13 @@ def _run_one_sort(tid, a, bar, done):
def test():
global TID, tid, io, wh, randint, alive
- import whrandom
- randint = whrandom.randint
+ import random
+ randint = random.randint
TID = 0 # thread ID (1, 2, ...)
tid = thread.allocate_lock() # for changing TID
io = thread.allocate_lock() # for printing, and 'alive'
- wh = thread.allocate_lock() # for calls to whrandom
+ wh = thread.allocate_lock() # for calls to random
alive = [] # IDs of active threads
NSORTS = 5