diff options
| author | Mike Smith <msmith@FreeBSD.org> | 2002-01-10 00:09:21 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 2002-01-10 00:09:21 +0000 |
| commit | 5390e1bc8fe871d8ca5ddcd288d918b1c538b4b5 (patch) | |
| tree | e549207a6bf34370bf2ca44766b2e4405fe8d4e8 /sys | |
| parent | 9556cd33ced38fa47226cef70f03efc30d309e5a (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/random/yarrow.c | 6 | ||||
| -rw-r--r-- | sys/dev/random/yarrow.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c index 343ca9ab6f6f..1554f06e3e92 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; diff --git a/sys/dev/random/yarrow.h b/sys/dev/random/yarrow.h index 7c603c778079..2fc7be218cb1 100644 --- a/sys/dev/random/yarrow.h +++ b/sys/dev/random/yarrow.h @@ -57,5 +57,3 @@ struct random_state { } pool[2]; /* pool[0] is fast, pool[1] is slow */ u_int which; /* toggle - sets the current insertion pool */ }; - -extern struct random_state random_state; |
