From 0633ebac405e1a78ab988d5c5b374bd7249c283d Mon Sep 17 00:00:00 2001 From: whl739 Date: Mon, 28 May 2018 21:05:36 +0800 Subject: [PATCH] Fix compling error in the newer version of gcc and openssl. `RAND_pseudo_bytes` is deprecated in the newer version of openssl. Use `RAND_bytes` instead. --- lib/ff_host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ff_host_interface.c b/lib/ff_host_interface.c index 2b1ffddc..0b239d32 100644 --- a/lib/ff_host_interface.c +++ b/lib/ff_host_interface.c @@ -197,7 +197,7 @@ ff_arc4rand(void *ptr, unsigned int len, int reseed) { (void)reseed; - RAND_pseudo_bytes(ptr, len); + RAND_bytes(ptr, len); } uint32_t