summaryrefslogtreecommitdiff
path: root/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/helper.c b/helper.c
index 3b0402ec..c9aa51e4 100644
--- a/helper.c
+++ b/helper.c
@@ -57,14 +57,14 @@ void setproctitle(const char *fmt, ...)
/* FIXME */
}
-unsigned char arc4random(void)
+unsigned int arc4random(void)
{
- unsigned char r;
+ unsigned int r;
if (rc4 == NULL)
arc4random_stir();
- rc4_getbytes(rc4, &r, 1);
+ rc4_getbytes(rc4, (unsigned char *)&r, sizeof(r));
return(r);
}