[ python-Bugs-1021596 ] Trivial fix for obscure bug in os.urandom()
SourceForge.net
noreply at sourceforge.net
Sat Sep 18 18:08:25 CEST 2004
Bugs item #1021596, was opened at 2004-09-03 06:00
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1021596&group_id=5470
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 7
Submitted By: Nick Mathewson (nickm)
Assigned to: Martin v. Löwis (loewis)
Summary: Trivial fix for obscure bug in os.urandom()
Initial Comment:
The new os.urandom function checks for whether it has
set _urandomfd with "if not _urandomfd:" . But this is
incorrect; on some systems, if fd 0 has been closed, it
is possible for _urandomfd to be 0. Instead, the check
should be "if _urandomfd is None".
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2004-09-18 18:08
Message:
Logged In: YES
user_id=21627
Thanks, committed as os.py 1.82.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1021596&group_id=5470
More information about the Python-bugs-list
mailing list