summaryrefslogtreecommitdiff
path: root/Lib/mimetools.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-20 17:05:52 +0000
committerGuido van Rossum <guido@python.org>1998-05-20 17:05:52 +0000
commitb26a1b4e2b99f4473c2133a2206b782a7fa57932 (patch)
treec6fcbbac623adacff0117641975cc75d49f33da5 /Lib/mimetools.py
parent33d7f1a76c3544d2901492cfb6fc9db85f2dfbd6 (diff)
downloadcpython-git-b26a1b4e2b99f4473c2133a2206b782a7fa57932.tar.gz
Use random instead of whrandom.
Diffstat (limited to 'Lib/mimetools.py')
-rw-r--r--Lib/mimetools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/mimetools.py b/Lib/mimetools.py
index eed24ca0af..fc72c79ed3 100644
--- a/Lib/mimetools.py
+++ b/Lib/mimetools.py
@@ -109,7 +109,7 @@ _prefix = None
def choose_boundary():
global _prefix
import time
- import whrandom
+ import random
if _prefix == None:
import socket
import os
@@ -124,7 +124,7 @@ def choose_boundary():
pid = '1'
_prefix = hostid + '.' + uid + '.' + pid
timestamp = '%.3f' % time.time()
- seed = `whrandom.randint(0, 32767)`
+ seed = `random.randint(0, 32767)`
return _prefix + '.' + timestamp + '.' + seed