From 8529ed14cafd76d17b6f045cdcb008031b1e9f0e Mon Sep 17 00:00:00 2001 From: Adrien Kaiser Date: Fri, 25 Aug 2023 15:02:20 +0200 Subject: [PATCH] MeshProjector: Fix random shuffle for CPP 17 --- src/MeshProjector.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MeshProjector.cc b/src/MeshProjector.cc index 69a37e1..75c340b 100644 --- a/src/MeshProjector.cc +++ b/src/MeshProjector.cc @@ -6,6 +6,7 @@ #include #include #include +#include #include @@ -185,7 +186,7 @@ void MeshProjector::ComputeIndependentSet() { group.push_back(i); marked_vertices += 1; } - std::random_shuffle(group.begin(), group.end()); + std::shuffle(group.begin(), group.end(), std::mt19937(std::random_device()())); } group_id += 1; }