summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/yarrow.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-01-10 00:09:21 +0000
committermsmith <msmith@FreeBSD.org>2002-01-10 00:09:21 +0000
commitcaa458225bdcfc1a2ca4b7b7ce49ce458677a30f (patch)
treee549207a6bf34370bf2ca44766b2e4405fe8d4e8 /sys/dev/random/yarrow.c
parentc400612ce580392c745b0d796602ba1300735193 (diff)
downloadFreeBSD-src-caa458225bdcfc1a2ca4b7b7ce49ce458677a30f.zip
FreeBSD-src-caa458225bdcfc1a2ca4b7b7ce49ce458677a30f.tar.gz
Staticise the random_state array.
Reviewed by: markm
Diffstat (limited to 'sys/dev/random/yarrow.c')
-rw-r--r--sys/dev/random/yarrow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c
index 343ca9a..1554f06 100644
--- a/sys/dev/random/yarrow.c
+++ b/sys/dev/random/yarrow.c
@@ -51,6 +51,9 @@ RANDOM_CHECK_UINT(fastthresh, BLOCKSIZE/4, BLOCKSIZE);
RANDOM_CHECK_UINT(slowthresh, BLOCKSIZE/4, BLOCKSIZE);
RANDOM_CHECK_UINT(slowoverthresh, 1, 5);
+/* Structure holding the entropy state */
+static struct random_state random_state;
+
SYSCTL_NODE(_kern_random, OID_AUTO, yarrow, CTLFLAG_RW, 0, "Yarrow Parameters");
SYSCTL_PROC(_kern_random_yarrow, OID_AUTO, gengateinterval,
CTLTYPE_INT|CTLFLAG_RW, &random_state.gengateinterval, 10,
@@ -71,9 +74,6 @@ SYSCTL_PROC(_kern_random_yarrow, OID_AUTO, slowoverthresh,
static void generator_gate(void);
static void reseed(u_int);
-/* Structure holding the entropy state */
-struct random_state random_state;
-
/* The reseed thread mutex */
static struct mtx random_reseed_mtx;
OpenPOWER on IntegriCloud