Default to harvesting everything. This is to help give a faster

startup. harvesting can be turned OFF in etc/rc.d/* if it is a
burden.
This commit is contained in:
Mark Murray 2004-04-16 17:07:11 +00:00
parent a50f2c9f42
commit 2a8b87d883
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128320
2 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$");
static int read_random_phony(void *, int);
/* Structure holding the desired entropy sources */
struct harvest_select harvest = { 0, 0, 0, 0 };
struct harvest_select harvest = { 1, 1, 1, 0 };
/* hold the address of the routine which is actually called if
* the randomdev is loaded

View file

@ -145,17 +145,17 @@ random_yarrow_init(void)
o = SYSCTL_ADD_PROC(&random_clist,
SYSCTL_CHILDREN(random_sys_harvest_o),
OID_AUTO, "ethernet", CTLTYPE_INT | CTLFLAG_RW,
&harvest.ethernet, 0, random_check_boolean, "I",
&harvest.ethernet, 1, random_check_boolean, "I",
"Harvest NIC entropy");
o = SYSCTL_ADD_PROC(&random_clist,
SYSCTL_CHILDREN(random_sys_harvest_o),
OID_AUTO, "point_to_point", CTLTYPE_INT | CTLFLAG_RW,
&harvest.point_to_point, 0, random_check_boolean, "I",
&harvest.point_to_point, 1, random_check_boolean, "I",
"Harvest serial net entropy");
o = SYSCTL_ADD_PROC(&random_clist,
SYSCTL_CHILDREN(random_sys_harvest_o),
OID_AUTO, "interrupt", CTLTYPE_INT | CTLFLAG_RW,
&harvest.interrupt, 0, random_check_boolean, "I",
&harvest.interrupt, 1, random_check_boolean, "I",
"Harvest IRQ entropy");
o = SYSCTL_ADD_PROC(&random_clist,
SYSCTL_CHILDREN(random_sys_harvest_o),