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/yarrow.h | |
parent | f94bf02fdbcc9446be623773c7bcfdf7a21b4e88 (diff) | |
download | src-7aa4389a6c7429f679ba5d0348c4251242ed4702.tar.gz src-7aa4389a6c7429f679ba5d0348c4251242ed4702.zip |
o Fix a horrible bug where small reads (< 8 bytes) would return the
wrong bytes.
o Improve the public interface; use void* instead of char* or u_int64_t
to pass arbitrary data around.
Submitted by: kris ("horrible bug")
Notes
Notes:
svn path=/head/; revision=63855
Diffstat (limited to 'sys/dev/random/yarrow.h')
-rw-r--r-- | sys/dev/random/yarrow.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/random/yarrow.h b/sys/dev/random/yarrow.h index e64a1bc64b13..a11dbaef732c 100644 --- a/sys/dev/random/yarrow.h +++ b/sys/dev/random/yarrow.h @@ -42,10 +42,10 @@ void random_init(void); void random_deinit(void); -void random_init_harvester(void (*)(struct timespec *, u_int64_t, u_int, u_int, enum esource)); +void random_init_harvester(void (*)(struct timespec *, void *, u_int, u_int, u_int, enum esource)); void random_deinit_harvester(void); -void write_random(char *, u_int); +void write_random(void *, u_int); /* This is the beastie that needs protecting. It contains all of the * state that we are excited about. |