Commit 725f8c83 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #1021596: Check for None to determine whether _urandomfd is

uninitialized.
parent b0c670ce
...@@ -666,7 +666,7 @@ if not _exists("urandom"): ...@@ -666,7 +666,7 @@ if not _exists("urandom"):
""" """
global _urandomfd global _urandomfd
if not _urandomfd: if _urandomfd is None:
try: try:
_urandomfd = open("/dev/urandom", O_RDONLY) _urandomfd = open("/dev/urandom", O_RDONLY)
except: except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment