diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-03 14:13:56 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-03 14:13:56 +0100 |
commit | bc2a2bbd4d2545d2dbfd9497101c10cfd2f383cb (patch) | |
tree | a7c77e3138bd1ceb498a0031639cddf0156f9374 /util-src/crand.c | |
parent | ebeea12c82bcc76baeaec25d252f0ea720fdfcd7 (diff) | |
download | prosody-bc2a2bbd4d2545d2dbfd9497101c10cfd2f383cb.tar.gz prosody-bc2a2bbd4d2545d2dbfd9497101c10cfd2f383cb.zip |
util.crand: Silence signedness warning
Diffstat (limited to 'util-src/crand.c')
-rw-r--r-- | util-src/crand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/crand.c b/util-src/crand.c index cff82dab..ed685342 100644 --- a/util-src/crand.c +++ b/util-src/crand.c @@ -91,7 +91,7 @@ int Lrandom(lua_State *L) { return lua_error(L); } - if(RAND_bytes(buf, len) != 1) { + if(RAND_bytes((unsigned char *)buf, len) != 1) { /* TODO ERR_get_error() */ lua_pushstring(L, "RAND_bytes() failed"); return lua_error(L); |