From b26a1b4e2b99f4473c2133a2206b782a7fa57932 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 20 May 1998 17:05:52 +0000 Subject: Use random instead of whrandom. --- Lib/mimetools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/mimetools.py') 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 -- cgit v1.2.1