Fix C++ default_random_engine seed not compiling in macOS

This commit is contained in:
daijro 2024-10-02 22:34:03 -05:00
parent 902af26de1
commit 3f9863211a

View file

@ -225,6 +225,5 @@ class HumanizeMouseTrajectory {
return true;
}
mutable std::default_random_engine randomEngine{
static_cast<unsigned long>(std::time(nullptr))};
mutable std::default_random_engine randomEngine{std::random_device{}()};
};