mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
util.crand: Apply formatter
This commit is contained in:
parent
bfaca2ef00
commit
a29f404ece
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ int Lrandom(lua_State *L) {
|
||||||
arc4random_buf(buf, len);
|
arc4random_buf(buf, len);
|
||||||
ret = len;
|
ret = len;
|
||||||
#elif defined(WITH_OPENSSL)
|
#elif defined(WITH_OPENSSL)
|
||||||
|
|
||||||
if(!RAND_status()) {
|
if(!RAND_status()) {
|
||||||
lua_pushliteral(L, "OpenSSL PRNG not seeded");
|
lua_pushliteral(L, "OpenSSL PRNG not seeded");
|
||||||
return lua_error(L);
|
return lua_error(L);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue