diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-04-06 09:30:42 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-04-06 09:30:42 +0000 |
| commit | 2eeb0e2ea0fae54fb22dae17433a2c36de0e271a (patch) | |
| tree | 45292f71df7d6fe55f46ec87a6491769dcae81d6 /sys/kern/kern_random.c | |
| parent | 4cf41af3d424a8ec0670f03b36e8b685127f5851 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_random.c')
| -rw-r--r-- | sys/kern/kern_random.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_random.c b/sys/kern/kern_random.c index 2022c7125150..e1f1f613080e 100644 --- a/sys/kern/kern_random.c +++ b/sys/kern/kern_random.c @@ -1,7 +1,7 @@ /* * random_machdep.c -- A strong random number generator * - * $Id: random_machdep.c,v 1.22 1998/03/28 13:24:35 bde Exp $ + * $Id: random_machdep.c,v 1.23 1998/03/29 11:55:06 phk Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -321,18 +321,18 @@ get_random_bytes(void *buf, u_int nbytes) #endif /* notused */ u_int -read_random(char *buf, u_int nbytes) +read_random(void *buf, u_int nbytes) { if ((nbytes * 8) > random_state.entropy_count) nbytes = random_state.entropy_count / 8; - return extract_entropy(&random_state, buf, nbytes); + return extract_entropy(&random_state, (char *)buf, nbytes); } u_int -read_random_unlimited(char *buf, u_int nbytes) +read_random_unlimited(void *buf, u_int nbytes) { - return extract_entropy(&random_state, buf, nbytes); + return extract_entropy(&random_state, (char *)buf, nbytes); } #ifdef notused |
