diff options
-rw-r--r-- | Lib/random.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py index 0047c91..e6f6e4b 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -62,7 +62,8 @@ RECIP_BPF = 2**-BPF try: from os import urandom as _urandom from binascii import hexlify as _hexlify -except ImportError: + _urandom(1) # verify that urandom is implemented +except (ImportError, NotImplementedError): _urandom = None |