aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-01 00:29:25 +0100
committerKim Alvefur <zash@zash.se>2017-12-01 00:29:25 +0100
commita29f404ece8b786c3e330baffca2b9761e64d259 (patch)
treecfa659e8b1f5cc29be914a95a17f39b0d7489090 /util-src
parentbfaca2ef001cd67e012c218a8e4c5e532a10312a (diff)
downloadprosody-a29f404ece8b786c3e330baffca2b9761e64d259.tar.gz
prosody-a29f404ece8b786c3e330baffca2b9761e64d259.zip
util.crand: Apply formatter
Diffstat (limited to 'util-src')
-rw-r--r--util-src/crand.c1
1 files changed, 1 insertions, 0 deletions
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);