# HG changeset patch # User Kim Alvefur # Date 1488042744 -3600 # Node ID 12e5a54907b64c7666c413a5dd04878911245fb5 # Parent 1ea3a8dc7dd59be66d7a9574af687b7077731ab7 util.crand: Clarify that lua_error does not return diff -r 1ea3a8dc7dd5 -r 12e5a54907b6 util-src/crand.c --- a/util-src/crand.c Sat Feb 25 18:08:30 2017 +0100 +++ b/util-src/crand.c Sat Feb 25 18:12:24 2017 +0100 @@ -69,7 +69,7 @@ #elif defined(WITH_OPENSSL) if(!RAND_status()) { lua_pushliteral(L, "OpenSSL PRNG not seeded"); - lua_error(L); + return lua_error(L); } ret = RAND_bytes(buf, len);