diff --git a/daemon/aux.h b/daemon/aux.h index 3d45afb5d..d0d0af3e5 100644 --- a/daemon/aux.h +++ b/daemon/aux.h @@ -188,8 +188,8 @@ INLINE int strmemcmp(const void *mem, int len, const char *str) { INLINE void random_string(unsigned char *buf, int len) { assert(RAND_bytes(buf, len) == 1); } -INLINE long int ssl_random() { - long int ret; +INLINE long unsigned int ssl_random() { + long unsigned int ret; random_string((void *) &ret, sizeof(ret)); return ret; }