From 988c66bad62d7d81cc10fb58e1af264671705538 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 1 Dec 2017 00:29:25 +0100 Subject: util.crand: Apply formatter --- util-src/crand.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util-src/crand.c') diff --git a/util-src/crand.c b/util-src/crand.c index e3bed451..28b94b3b 100644 --- a/util-src/crand.c +++ b/util-src/crand.c @@ -77,6 +77,7 @@ int Lrandom(lua_State *L) { arc4random_buf(buf, len); ret = len; #elif defined(WITH_OPENSSL) + if(!RAND_status()) { lua_pushliteral(L, "OpenSSL PRNG not seeded"); return lua_error(L); -- cgit v1.2.3