check for errors in SSL RAND_(poll|bytes) calls
diff --git a/evhtp.c b/evhtp.c
index 295f864..8c5e0d6 100644
--- a/evhtp.c
+++ b/evhtp.c
@@ -4770,7 +4770,16 @@
     ERR_load_crypto_strings();
     SSL_load_error_strings();
     OpenSSL_add_all_algorithms();
-    RAND_poll();
+
+    if (RAND_poll() != 1) {
+        log_error("RAND_poll");
+        return -1;
+    }
+
+    if (RAND_bytes(&c, 1) != 1) {
+        log_error("RAND_bytes");
+        return -1;
+    }
 
 #if OPENSSL_VERSION_NUMBER < 0x10000000L
     STACK_OF(SSL_COMP) * comp_methods = SSL_COMP_get_compression_methods();