From 3f9863211ab6df210997ab963a32bdc6e2252de6 Mon Sep 17 00:00:00 2001 From: daijro Date: Wed, 2 Oct 2024 22:34:03 -0500 Subject: [PATCH] Fix C++ default_random_engine seed not compiling in macOS --- additions/camoucfg/MouseTrajectories.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/additions/camoucfg/MouseTrajectories.hpp b/additions/camoucfg/MouseTrajectories.hpp index 9a69669..67e0e6e 100644 --- a/additions/camoucfg/MouseTrajectories.hpp +++ b/additions/camoucfg/MouseTrajectories.hpp @@ -225,6 +225,5 @@ class HumanizeMouseTrajectory { return true; } - mutable std::default_random_engine randomEngine{ - static_cast(std::time(nullptr))}; + mutable std::default_random_engine randomEngine{std::random_device{}()}; }; \ No newline at end of file