The usual.
diff --git a/Lib/dos-8x3/mimetool.py b/Lib/dos-8x3/mimetool.py
index 5489aa0..fc72c79 100755
--- a/Lib/dos-8x3/mimetool.py
+++ b/Lib/dos-8x3/mimetool.py
@@ -109,7 +109,7 @@
def choose_boundary():
global _prefix
import time
- import rand
+ import random
if _prefix == None:
import socket
import os
@@ -122,10 +122,9 @@
pid = `os.getpid()`
except:
pid = '1'
- seed = `rand.rand()`
_prefix = hostid + '.' + uid + '.' + pid
- timestamp = `int(time.time())`
- seed = `rand.rand()`
+ timestamp = '%.3f' % time.time()
+ seed = `random.randint(0, 32767)`
return _prefix + '.' + timestamp + '.' + seed