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 | a29f404ece8b786c3e330baffca2b9761e64d259 (patch) | |
tree | cfa659e8b1f5cc29be914a95a17f39b0d7489090 /util-src/crand.c | |
parent | bfaca2ef001cd67e012c218a8e4c5e532a10312a (diff) | |
download | prosody-a29f404ece8b786c3e330baffca2b9761e64d259.tar.gz prosody-a29f404ece8b786c3e330baffca2b9761e64d259.zip |
util.crand: Apply formatter
Diffstat (limited to 'util-src/crand.c')
-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); |