aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random/fortuna.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/random/fortuna.c')
-rw-r--r--sys/dev/random/fortuna.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/random/fortuna.c b/sys/dev/random/fortuna.c
index c4282c723a44..8363de99a60a 100644
--- a/sys/dev/random/fortuna.c
+++ b/sys/dev/random/fortuna.c
@@ -341,6 +341,13 @@ random_fortuna_process_event(struct harvest_event *event)
u_int pl;
RANDOM_RESEED_LOCK();
+ /*
+ * Run SP 800-90B health tests on the source if so configured.
+ */
+ if (!random_harvest_healthtest(event)) {
+ RANDOM_RESEED_UNLOCK();
+ return;
+ }
/*-
* FS&K - P_i = P_i|<harvested stuff>
* Accumulate the event into the appropriate pool