Commit 95334a5d authored by Tim Peters's avatar Tim Peters

Purged Berkeley code of references to the long-obsolete whrandom.

parent 60395120
...@@ -21,7 +21,7 @@ import re ...@@ -21,7 +21,7 @@ import re
import sys import sys
import copy import copy
import xdrlib import xdrlib
import whrandom import random
from types import ListType, StringType from types import ListType, StringType
import cPickle as pickle import cPickle as pickle
...@@ -354,8 +354,8 @@ class bsdTableDB : ...@@ -354,8 +354,8 @@ class bsdTableDB :
# (note: this code has <64 bits of randomness # (note: this code has <64 bits of randomness
# but it's plenty for our database id needs!) # but it's plenty for our database id needs!)
p = xdrlib.Packer() p = xdrlib.Packer()
p.pack_int(int(whrandom.random()*2147483647)) p.pack_int(int(random.random()*2147483647))
p.pack_int(int(whrandom.random()*2147483647)) p.pack_int(int(random.random()*2147483647))
newid = p.get_buffer() newid = p.get_buffer()
# Guarantee uniqueness by adding this key to the database # Guarantee uniqueness by adding this key to the database
......
...@@ -6,7 +6,6 @@ import sys, os, string ...@@ -6,7 +6,6 @@ import sys, os, string
import tempfile import tempfile
import time import time
from pprint import pprint from pprint import pprint
from whrandom import random
try: try:
from threading import Thread, currentThread from threading import Thread, currentThread
......
...@@ -8,7 +8,7 @@ import errno ...@@ -8,7 +8,7 @@ import errno
import shutil import shutil
import tempfile import tempfile
from pprint import pprint from pprint import pprint
from whrandom import random from random import random
try: try:
True, False True, False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment