aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2005-03-29 11:08:45 +0000
committerMark Murray <markm@FreeBSD.org>2005-03-29 11:08:45 +0000
commit3a0323d92f29bd5a20dc60de017964326d9111d6 (patch)
treebe929a53a50c52aa5479ab3abdbde83f9b4b7b9c
parent9f3d9acd260667981538f95d404e171fe59c5f52 (diff)
Notes
-rw-r--r--sys/dev/random/randomdev_soft.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/random/randomdev_soft.c b/sys/dev/random/randomdev_soft.c
index 87f13af331fb..4d109a787e23 100644
--- a/sys/dev/random/randomdev_soft.c
+++ b/sys/dev/random/randomdev_soft.c
@@ -90,7 +90,7 @@ static struct entropyfifo emptyfifo;
#define EMPTYBUFFERS 1024
/* Harvested entropy */
-static struct entropyfifo harvestfifo[ENTROPYSOURCE + 1];
+static struct entropyfifo harvestfifo[ENTROPYSOURCE];
/* <0 to end the kthread, 0 to let it run */
static int random_kthread_control = 0;
@@ -302,7 +302,7 @@ random_harvest_internal(u_int64_t somecounter, const void *entropy,
KASSERT(origin == RANDOM_START || origin == RANDOM_WRITE ||
origin == RANDOM_KEYBOARD || origin == RANDOM_MOUSE ||
origin == RANDOM_NET || origin == RANDOM_INTERRUPT ||
- origin == RANDOM_PURE || origin == ENTROPYSOURCE,
+ origin == RANDOM_PURE,
("random_harvest_internal: origin %d invalid\n", origin));
/* Lockless read to avoid lock operations if fifo is full. */