mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Staticise the random_state array.
Reviewed by: markm
This commit is contained in:
parent
9556cd33ce
commit
5390e1bc8f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89170
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user