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
commitb90855b2fefe0c28c81502dd820d9d3e285a157d (patch)
tree0ebec0dcd2bac2bda1676a79e5f17dec3f3f2539 /sys/dev/random/randomdev.c
parent4896d97a4e9a4e032c54028fa9fcd9e734af1ae8 (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);