aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random/randomdev.c
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2008-11-24 17:39:39 +0000
committerColin Percival <cperciva@FreeBSD.org>2008-11-24 17:39:39 +0000
commit8c85a7fb78d9486ad7db6ce44dfa06449d931fd1 (patch)
tree1b3d5ad6747035a3af07a8c99d741712c3c52d07 /sys/dev/random/randomdev.c
parent14443589665c67b40a37acc820b293c57cc165c2 (diff)
Notes
Diffstat (limited to 'sys/dev/random/randomdev.c')
-rw-r--r--sys/dev/random/randomdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index 7cc78e61e8c2..99c4ea6260de 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -90,6 +90,7 @@ random_close(struct cdev *dev __unused, int flags, int fmt __unused,
&& (securelevel_gt(td->td_ucred, 0) == 0)) {
(*random_systat.reseed)();
random_systat.seeded = 1;
+ arc4rand(NULL, 0, 1); /* Reseed arc4random as well. */
}
return (0);