diff options
author | markm <markm@FreeBSD.org> | 2004-04-16 17:07:11 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2004-04-16 17:07:11 +0000 |
commit | c23e5e71d7a8b5df0205ec85cabe3c5325812d54 (patch) | |
tree | b2a59c7afca6f4d8df023e0d5e2b15fbcffec980 /sys/dev/random | |
parent | 8d672f8640547c5fbad0a06b6c64b3eccce95dd2 (diff) | |
download | FreeBSD-src-c23e5e71d7a8b5df0205ec85cabe3c5325812d54.zip FreeBSD-src-c23e5e71d7a8b5df0205ec85cabe3c5325812d54.tar.gz |
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.
Diffstat (limited to 'sys/dev/random')
-rw-r--r-- | sys/dev/random/harvest.c | 2 | ||||
-rw-r--r-- | sys/dev/random/randomdev_soft.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c index c634c38..0ffa83e 100644 --- a/sys/dev/random/harvest.c +++ b/sys/dev/random/harvest.c @@ -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 diff --git a/sys/dev/random/randomdev_soft.c b/sys/dev/random/randomdev_soft.c index e342436..a2d18c0 100644 --- a/sys/dev/random/randomdev_soft.c +++ b/sys/dev/random/randomdev_soft.c @@ -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), |