summaryrefslogtreecommitdiff
path: root/sys/dev/random/yarrow.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-07-15 13:58:35 +0000
committerMark Murray <markm@FreeBSD.org>2002-07-15 13:58:35 +0000
commitbbf09ad887f1ebc18052ee12f5074c05d69a4e46 (patch)
treefb7e9c3d811aeb44859d7b6f68ad78e9fda5e601 /sys/dev/random/yarrow.c
parentd56fb9ceb03aa4f84769867422a3d544e99b6073 (diff)
downloadsrc-test-bbf09ad887f1ebc18052ee12f5074c05d69a4e46.tar.gz
src-test-bbf09ad887f1ebc18052ee12f5074c05d69a4e46.zip
Notes
Diffstat (limited to 'sys/dev/random/yarrow.c')
-rw-r--r--sys/dev/random/yarrow.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c
index dd79c340a415e..94078927e95eb 100644
--- a/sys/dev/random/yarrow.c
+++ b/sys/dev/random/yarrow.c
@@ -35,6 +35,7 @@
#include <sys/sysctl.h>
#include <crypto/rijndael/rijndael.h>
+#include <crypto/sha2/sha2.h>
#include <dev/random/hash.h>
#include <dev/random/randomdev.h>
@@ -249,9 +250,7 @@ reseed(u_int fastslow)
random_unblock();
}
-/* Internal function to do return processed entropy from the
- * Yarrow PRNG
- */
+/* Internal function to return processed entropy from the PRNG */
int
read_random_real(void *buf, int count)
{
@@ -343,5 +342,5 @@ generator_gate(void)
void
random_reseed(void)
{
- reseed(FAST);
+ reseed(SLOW);
}