diff options
author | Damien Miller <djm@mindrot.org> | 1999-10-28 13:20:30 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-10-28 13:20:30 +1000 |
commit | 3d112efc672b877c74893229d3fd30f99489b9ff (patch) | |
tree | 7542e5627242ff533087a4fe103c2690dd97782f /helper.c | |
parent | 332e67fde27c4017d2df8dafe05a55be3c7597cd (diff) |
Big PAM cleanupPRE_DAN_PATCH_MERGE
Added header for arc4random to mktemp.c
Fixed return type of arc4random
Diffstat (limited to 'helper.c')
-rw-r--r-- | helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |