summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/yarrow.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/random/yarrow.c')
-rw-r--r--sys/dev/random/yarrow.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c
index 8480897..c53e7c1 100644
--- a/sys/dev/random/yarrow.c
+++ b/sys/dev/random/yarrow.c
@@ -455,9 +455,6 @@ write_random(void *buf, u_int count)
random_harvest_internal(get_cyclecount(), (char *)buf + i, count,
0, 0, RANDOM_WRITE);
}
-
- /* Explicit reseed */
- reseed(FAST);
}
static void
@@ -527,3 +524,10 @@ random_harvest_internal(u_int64_t somecounter, void *entropy, u_int count,
mtx_exit(&random_harvest_mtx, MTX_DEF);
}
}
+
+/* Helper routine to perform explicit reseeds */
+void
+random_reseed(void)
+{
+ reseed(FAST);
+}
OpenPOWER on IntegriCloud