Another batch of updates...

This commit is contained in:
Guido van Rossum 1996-08-26 18:33:32 +00:00
parent 52a42fe9e7
commit a8763e54ff
20 changed files with 842 additions and 62 deletions

View file

@ -106,8 +106,14 @@ def choose_boundary():
import socket
import os
hostid = socket.gethostbyname(socket.gethostname())
uid = `os.getuid()`
pid = `os.getpid()`
try:
uid = `os.getuid()`
except:
uid = '1'
try:
pid = `os.getpid()`
except:
pid = '1'
seed = `rand.rand()`
_prefix = hostid + '.' + uid + '.' + pid
timestamp = `int(time.time())`