CVS: crypto/Util randpool.py,1.13,1.14

"A.M. Kuchling" <[email protected]> Thu, 06 May 2004 05:56:56 -0700
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Update of /cvsroot/pycrypto/crypto/Util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19142/Util

Modified Files:
	randpool.py 
Log Message:
[Bug #755108] Fix future warning

Index: randpool.py
===================================================================
RCS file: /cvsroot/pycrypto/crypto/Util/randpool.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- randpool.py	28 Feb 2003 15:26:01 -0000	1.13
+++ randpool.py	6 May 2004 12:56:54 -0000	1.14
@@ -158,7 +158,7 @@
             h = self._hash.new(self._randpool)
             h.update(str(self.__counter) + str(i) + str(self._addPos) + s)
             self._addBytes( h.digest() )
-            self.__counter = (self.__counter + 1) & 0xFFFFffff
+            self.__counter = (self.__counter + 1) & 0xFFFFffffL
 
         self._addPos, self._getPos = 0, self._hash.digest_size
         self.add_event()



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3