summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2004-04-16 17:07:11 +0000
committerMark Murray <markm@FreeBSD.org>2004-04-16 17:07:11 +0000
commit2a8b87d883fc0b98a4db6d6fbd8061d00b32e07f (patch)
treeb2a59c7afca6f4d8df023e0d5e2b15fbcffec980 /sys/dev
parenta50f2c9f426691f15bf3de6302b38abb5f4fe96b (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/random/harvest.c2
-rw-r--r--sys/dev/random/randomdev_soft.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c
index c634c3814d531..0ffa83eff0341 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 e342436ea58b0..a2d18c02d40a7 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),