diff options
author | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2009-10-12 18:39:52 -0400 |
---|---|---|
committer | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2009-10-12 18:39:54 -0400 |
commit | 4cf61f7ebbf7a4985dac5115ae667967b3db0848 (patch) | |
tree | 18880914a45279f1af0c3d2ff643959eb71b1899 | |
parent | f2dc3056031318c3e873e256ca9fc668ddaa0071 (diff) | |
download | pycrypto-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.py | 2 |
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 |