summaryrefslogtreecommitdiff
path: root/src/OpenSSL/rand.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/OpenSSL/rand.py')
-rw-r--r--src/OpenSSL/rand.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/OpenSSL/rand.py b/src/OpenSSL/rand.py
index a22f9e5..8f51ad8 100644
--- a/src/OpenSSL/rand.py
+++ b/src/OpenSSL/rand.py
@@ -31,6 +31,7 @@ class Error(Exception):
See :manpage:`err(3)` for more information.
"""
+
_raise_current_error = partial(_exception_from_error_queue, Error)
_unspecified = object()
@@ -202,6 +203,7 @@ def screen():
"""
_lib.RAND_screen()
+
if getattr(_lib, 'RAND_screen', None) is None:
del screen