Skip to content

Commit

Permalink
Fix C++ default_random_engine seed not compiling in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
daijro committed Oct 3, 2024
1 parent 902af26 commit 3f98632
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions additions/camoucfg/MouseTrajectories.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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{}()};
};

0 comments on commit 3f98632

Please sign in to comment.