diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-01 00:29:25 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-01 00:29:25 +0100 |
commit | 988c66bad62d7d81cc10fb58e1af264671705538 (patch) | |
tree | cfa659e8b1f5cc29be914a95a17f39b0d7489090 /util-src | |
parent | 1138703cedd72b370e3f27b07295fced1dfc58ca (diff) | |
download | prosody-988c66bad62d7d81cc10fb58e1af264671705538.tar.gz prosody-988c66bad62d7d81cc10fb58e1af264671705538.zip |
util.crand: Apply formatter
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/crand.c | 1 |
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); |