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 3b0402ecf..c9aa51e4f 100644
--- a/helper.c
+++ b/helper.c
@@ -57,14 +57,14 @@ void setproctitle(const char *fmt, ...)
57 /* FIXME */ 57 /* FIXME */
58} 58}
59 59
60unsigned char arc4random(void) 60unsigned int arc4random(void)
61{ 61{
62 unsigned char r; 62 unsigned int r;
63 63
64 if (rc4 == NULL) 64 if (rc4 == NULL)
65 arc4random_stir(); 65 arc4random_stir();
66 66
67 rc4_getbytes(rc4, &r, 1); 67 rc4_getbytes(rc4, (unsigned char *)&r, sizeof(r));
68 68
69 return(r); 69 return(r);
70} 70}