[ pycrypto-Patches-581981 ] _measureTickSize() bug

"SourceForge.net" <[email protected]> Mon, 10 Mar 2003 06:41:08 -0800
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Patches item #581981, was opened at 2002-07-15 18:56
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=320937&aid=581981&group_id=20937

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: A.M. Kuchling (akuchling)
Summary: _measureTickSize() bug

Initial Comment:
When I ran the Crypto package under Cygwin, I received 
the following error in Crypto.Util.randpool:

File "/usr/lib/python2.2/site-
packages/Crypto/Util/randpool.py", line 178,
in _noise
delta = (t - self._lastcounter)/self._ticksize*1e6
TypeError: unsupported operand type(s) for /: 'float' 
and 'NoneType'

It seems the ticksize is None.  In _measureTickSize(), if 
delta is 0, an interval is not assigned and remains at 
None.

Attached is a proposed patch.


Patti Giberson
[email protected]

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2003-03-10 09:41

Message:
Logged In: YES 
user_id=11375

Believed to be fixed in 1.9alpha5.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=320937&aid=581981&group_id=20937


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf