Software /
code /
prosody
Comparison
util-src/crand.c @ 8424:b0a267f77d9e
util.crand: Apply formatter
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Dec 2017 00:29:25 +0100 |
parent | 8423:65c82a7d0537 |
child | 8425:91c220f43826 |
comparison
equal
deleted
inserted
replaced
8423:65c82a7d0537 | 8424:b0a267f77d9e |
---|---|
75 | 75 |
76 #elif defined(WITH_ARC4RANDOM) | 76 #elif defined(WITH_ARC4RANDOM) |
77 arc4random_buf(buf, len); | 77 arc4random_buf(buf, len); |
78 ret = len; | 78 ret = len; |
79 #elif defined(WITH_OPENSSL) | 79 #elif defined(WITH_OPENSSL) |
80 | |
80 if(!RAND_status()) { | 81 if(!RAND_status()) { |
81 lua_pushliteral(L, "OpenSSL PRNG not seeded"); | 82 lua_pushliteral(L, "OpenSSL PRNG not seeded"); |
82 return lua_error(L); | 83 return lua_error(L); |
83 } | 84 } |
84 | 85 |