From 03285f41408bf88ef60fbf550440a8455b4678e1 Mon Sep 17 00:00:00 2001 From: rabbitstack Date: Thu, 16 Mar 2023 13:55:48 +0100 Subject: [PATCH] define Windows equivalent for srandom and random functions Signed-off-by: rabbitstack --- userspace/engine/falco_engine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/userspace/engine/falco_engine.cpp b/userspace/engine/falco_engine.cpp index 343e92ed..8ff59159 100644 --- a/userspace/engine/falco_engine.cpp +++ b/userspace/engine/falco_engine.cpp @@ -15,7 +15,14 @@ limitations under the License. */ #include +#ifndef _WIN32 #include +#else +#include +#include +#define srandom srand +#define random rand +#endif #include #include #include