--- /tmp/pycrypto-2.2/lib/Crypto/Util/number.py 2010-08-02 21:15:23.000000000 +0000 +++ lib/Crypto/Util/number.py 2010-08-19 03:34:54.000000000 +0000 @@ -24,10 +24,11 @@ # =================================================================== # __revision__ = "$Id$" +from Crypto.pct_warnings import GetRandomNumber_DeprecationWarning import math bignum = long try: from Crypto.PublicKey import _fastmath --- /tmp/pycrypto-2.2/lib/Crypto/pct_warnings.py 2010-08-02 21:15:23.000000000 +0000 +++ lib/Crypto/pct_warnings.py 2010-08-19 03:32:05.000000000 +0000 @@ -41,16 +41,16 @@ # class RandomPool_DeprecationWarning(CryptoDeprecationWarning): """Issued when Crypto.Util.randpool.RandomPool is instantiated.""" -class ClockRewindWarning(CryptoRuntimeWarning): - """Warning for when the system clock moves backwards.""" - class GetRandomNumber_DeprecationWarning(CryptoDeprecationWarning): """Issued when Crypto.Util.number.getRandomNumber is invoked.""" +class ClockRewindWarning(CryptoRuntimeWarning): + """Warning for when the system clock moves backwards.""" + # By default, we want this warning to be shown every time we compensate for # clock rewinding. import warnings as _warnings _warnings.filterwarnings('always', category=ClockRewindWarning, append=1)