From 2fcd7b85986f144662092b4e0a7c973b5be74306 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 7 Sep 2023 09:50:29 -0700 Subject: modules/flow: add TODO blurb abot per-cpu seeds Writing this down so it doesn't completely fall off my radar. --- src/modules/flow/flow.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/flow') diff --git a/src/modules/flow/flow.c b/src/modules/flow/flow.c index 86632a0..d667e09 100644 --- a/src/modules/flow/flow.c +++ b/src/modules/flow/flow.c @@ -19,6 +19,9 @@ /* TODO: * - improve the second pass's element rejection efficiency, a spatial data structure * could probably help here. + * + * - rand_element() is called in parallel in the first pass when elements are rebooted, + * but a single shared seed is being used. This should be made a per-cpu seed. */ #define FLOW_DEFAULT_SIZE "8" -- cgit v1.2.3