summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2009-10-12 18:39:52 -0400
committerDwayne C. Litzenberger <dlitz@dlitz.net>2009-10-12 18:39:54 -0400
commit4cf61f7ebbf7a4985dac5115ae667967b3db0848 (patch)
tree18880914a45279f1af0c3d2ff643959eb71b1899
parentf2dc3056031318c3e873e256ca9fc668ddaa0071 (diff)
downloadpycrypto-4cf61f7ebbf7a4985dac5115ae667967b3db0848.tar.gz
Update RandomPool warning to indicate that *previous* versions were broken
The *new* version uses Crypto.Random, so it's not broken, but we still want to warn users and developers that their applications have been using an insecure RNG up to this point.
-rw-r--r--lib/Crypto/Util/randpool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crypto/Util/randpool.py b/lib/Crypto/Util/randpool.py
index 1317dc7..8b5a0b7 100644
--- a/lib/Crypto/Util/randpool.py
+++ b/lib/Crypto/Util/randpool.py
@@ -36,7 +36,7 @@ class RandomPool:
See http://www.pycrypto.org/randpool-broken
"""
def __init__(self, numbytes = 160, cipher=None, hash=None, file=None):
- warnings.warn("This application uses RandomPool, which is BROKEN. See http://www.pycrypto.org/randpool-broken",
+ warnings.warn("This application uses RandomPool, which is BROKEN in older releases. See http://www.pycrypto.org/randpool-broken",
RandomPool_DeprecationWarning)
self.__rng = Crypto.Random.new()
self.bytes = numbytes