# see LICENSE.txt for license information
from sha import sha
-import whrandom
+import random
#this is ugly, hopefully os.entropy will be in 2.4
try:
def entropy(n):
s = ''
for i in range(n):
- s += chr(whrandom.randint(0,255))
+ s += chr(random.randint(0,255))
return s
def intify(hstr):