diff options
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); |