security: Add support for OpenSSL 1.1.0 API

Change-Id: I8deb4c5c5cbc1755b492ccd12707d83764a91ad7
Refs: #3757
diff --git a/tests/unit-tests/util/random.t.cpp b/tests/unit-tests/util/random.t.cpp
index 18af4ff..62949b6 100644
--- a/tests/unit-tests/util/random.t.cpp
+++ b/tests/unit-tests/util/random.t.cpp
@@ -158,10 +158,18 @@
   }
 
 private: // RAND_METHOD callbacks
+#if OPENSSL_VERSION_NUMBER < 0x1010000fL
   static void
   seed(const void* buf, int num)
   {
   }
+#else
+  static int
+  seed(const void* buf, int num)
+  {
+    return 0;
+  }
+#endif // OPENSSL_VERSION_NUMBER < 0x1010000fL
 
   static int
   bytes(unsigned char *buf, int num)
@@ -174,10 +182,18 @@
   {
   }
 
+#if OPENSSL_VERSION_NUMBER < 0x1010000fL
   static void
   add(const void *buf, int num, double entropy)
   {
   }
+#else
+  static int
+  add(const void *buf, int num, double entropy)
+  {
+    return 0;
+  }
+#endif // OPENSSL_VERSION_NUMBER < 0x1010000fL
 
   static int
   pseudorand(unsigned char *buf, int num)