diff options
author | markm <markm@FreeBSD.org> | 2013-09-06 17:51:52 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2013-09-06 17:51:52 +0000 |
commit | d3a8919edc9a8e3635968a76db07078a44c2ead2 (patch) | |
tree | 95fc4f3c6e930dc97a3bb9eb8e0d624d9cd9335d /sys/dev/hifn | |
parent | 9d67aa8bffecbac35da57b6e638e6ae76f81a4be (diff) | |
download | FreeBSD-src-d3a8919edc9a8e3635968a76db07078a44c2ead2.zip FreeBSD-src-d3a8919edc9a8e3635968a76db07078a44c2ead2.tar.gz |
Yarrow wants entropy estimations to be conservative; the usual idea
is that if you are certain you have N bits of entropy, you declare
N/2.
Diffstat (limited to 'sys/dev/hifn')
-rw-r--r-- | sys/dev/hifn/hifn7751.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c index c5c5af1..ae6c5ac 100644 --- a/sys/dev/hifn/hifn7751.c +++ b/sys/dev/hifn/hifn7751.c @@ -258,7 +258,7 @@ hifn_partname(struct hifn_softc *sc) static void default_harvest(struct rndtest_state *rsp, void *buf, u_int count) { - random_harvest(buf, count, count*NBBY, 0, RANDOM_PURE); + random_harvest(buf, count, count*NBBY/2, 0, RANDOM_PURE); } static u_int |