aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util-src/crand.c2
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);