diff options
author | Mark Murray <markm@FreeBSD.org> | 2000-07-25 21:18:47 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2000-07-25 21:18:47 +0000 |
commit | 7aa4389a6c7429f679ba5d0348c4251242ed4702 (patch) | |
tree | e0df1733752dbf98e34078500989835c49d8aaa4 /sys/dev/random/harvest.c | |
parent | f94bf02fdbcc9446be623773c7bcfdf7a21b4e88 (diff) | |
download | src-7aa4389a6c7429f679ba5d0348c4251242ed4702.tar.gz src-7aa4389a6c7429f679ba5d0348c4251242ed4702.zip |
Notes
Diffstat (limited to 'sys/dev/random/harvest.c')
-rw-r--r-- | sys/dev/random/harvest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c index 3e160590d28a..92de3185b7fd 100644 --- a/sys/dev/random/harvest.c +++ b/sys/dev/random/harvest.c @@ -42,11 +42,11 @@ /* hold the address of the routine which is actually called if * the ramdomdev is loaded */ -static void (*reap)(struct timespec *, u_int64_t, u_int, u_int, u_int) = NULL; +static void (*reap)(struct timespec *, void *, u_int, u_int, u_int, u_int) = NULL; /* Initialise the harvester at load time */ void -random_init_harvester(void (*reaper)(struct timespec *, u_int64_t, u_int, u_int, u_int)) +random_init_harvester(void (*reaper)(struct timespec *, void *, u_int, u_int, u_int, u_int)) { reap = reaper; } @@ -64,12 +64,12 @@ random_deinit_harvester(void) * the entropy device. */ void -random_harvest(u_int64_t entropy, u_int bits, u_int frac, u_int origin) +random_harvest(void *entropy, u_int count, u_int bits, u_int frac, u_int origin) { struct timespec timebuf; if (reap) { nanotime(&timebuf); - (*reap)(&timebuf, entropy, bits, frac, origin); + (*reap)(&timebuf, entropy, count, bits, frac, origin); } } |