summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/dbtables.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-08 00:54:21 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-08 00:54:21 (GMT)
commit95334a5d1e224548d16b358c1314be444625b925 (patch)
tree3638a69dbc771c2511219d8adee58d783937ab78 /Lib/bsddb/dbtables.py
parent60395120f42c89f9e95c2f1a1e00002a648fa587 (diff)
downloadcpython-95334a5d1e224548d16b358c1314be444625b925.zip
cpython-95334a5d1e224548d16b358c1314be444625b925.tar.gz
cpython-95334a5d1e224548d16b358c1314be444625b925.tar.bz2
Purged Berkeley code of references to the long-obsolete whrandom.
Diffstat (limited to 'Lib/bsddb/dbtables.py')
-rw-r--r--Lib/bsddb/dbtables.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/bsddb/dbtables.py b/Lib/bsddb/dbtables.py
index e1d2c43..fd33b6e 100644
--- a/Lib/bsddb/dbtables.py
+++ b/Lib/bsddb/dbtables.py
@@ -21,7 +21,7 @@ import re
import sys
import copy
import xdrlib
-import whrandom
+import random
from types import ListType, StringType
import cPickle as pickle
@@ -354,8 +354,8 @@ class bsdTableDB :
# (note: this code has <64 bits of randomness
# but it's plenty for our database id needs!)
p = xdrlib.Packer()
- p.pack_int(int(whrandom.random()*2147483647))
- p.pack_int(int(whrandom.random()*2147483647))
+ p.pack_int(int(random.random()*2147483647))
+ p.pack_int(int(random.random()*2147483647))
newid = p.get_buffer()
# Guarantee uniqueness by adding this key to the database