aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2018-10-20 21:06:15 +0000
committerConrad Meyer <cem@FreeBSD.org>2018-10-20 21:06:15 +0000
commit93d587e4d0442c7e702995b53668081240eefba2 (patch)
treeb621566ee73fb678f9c2bbffb9fe9f6ae12a0f7f /sys/dev/random
parent36209a40d1f9883aceb039a111307ce196548fed (diff)
Notes
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/random_harvestq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/random/random_harvestq.c b/sys/dev/random/random_harvestq.c
index 934464e185c1..6699d06156ea 100644
--- a/sys/dev/random/random_harvestq.c
+++ b/sys/dev/random/random_harvestq.c
@@ -414,7 +414,8 @@ random_harvestq_prime(void *unused __unused)
event.he_somecounter = (uint32_t)get_cyclecount();
event.he_size = count;
event.he_source = RANDOM_CACHED;
- event.he_destination = harvest_context.hc_destination[0]++;
+ event.he_destination =
+ harvest_context.hc_destination[RANDOM_CACHED]++;
memcpy(event.he_entropy, data + i, sizeof(event.he_entropy));
random_harvestq_fast_process_event(&event);
explicit_bzero(&event, sizeof(event));