]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - khash.py
Remove the obsolete whrandom module and use random instead.
[quix0rs-apt-p2p.git] / khash.py
index f750deaf7126247dac716725da7ba89a61417bd5..8a5bc618e8c87bc7c58552963046993ba6595ea2 100644 (file)
--- a/khash.py
+++ b/khash.py
@@ -2,7 +2,7 @@
 # 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:
@@ -11,7 +11,7 @@ except ImportError:
     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):