summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 86b3566..22f25a3 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -658,17 +658,17 @@ except NameError: # statvfs_result may not exist
pass
if not _exists("urandom"):
- _urandomfd = None
+ _urandomfd = None
def urandom(n):
"""urandom(n) -> str
-
+
Return a string of n random bytes suitable for cryptographic use.
- """
+ """
global _urandomfd
if not _urandomfd:
try:
- _urandomfd = open("/dev/urandom", O_RDONLY)
+ _urandomfd = open("/dev/urandom", O_RDONLY)
except:
_urandomfd = NotImplementedError
if _urandomfd is NotImplementedError: