Page MenuHomeFreeBSD

D52233.1785601328.diff
No OneTemporary

Size
448 B
Referenced Files
None
Subscribers
None

D52233.1785601328.diff

diff --git a/sys/dev/random/random_harvestq.c b/sys/dev/random/random_harvestq.c
--- a/sys/dev/random/random_harvestq.c
+++ b/sys/dev/random/random_harvestq.c
@@ -341,7 +341,8 @@
{
memset(dst, 0, sizeof(uint32_t) * (HARVESTSIZE + 1));
memcpy(dst, event->he_entropy, event->he_size);
- dst[HARVESTSIZE] = event->he_somecounter;
+ if (event->he_source <= RANDOM_ENVIRONMENTAL_END)
+ dst[HARVESTSIZE] = event->he_somecounter;
}
static void

File Metadata

Mime Type
text/plain
Expires
Sat, Aug 1, 4:22 PM (13 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29327817
Default Alt Text
D52233.1785601328.diff (448 B)

Event Timeline