mirror of
https://github.com/falcosecurity/falco.git
synced 2026-04-11 14:32:55 +00:00
random() uses internal static state that is not thread-safe. Since should_drop_evt() can be called concurrently from per-source event processing threads, replace it with a thread_local std::mt19937 seeded by std::random_device. Remove the now-unused srandom() seed and Windows compat defines. Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
34 KiB
34 KiB