From 0fa46010f139d78ad222e970c225b35086f281e2 Mon Sep 17 00:00:00 2001 From: Dimitri Rusin Date: Tue, 7 May 2024 16:00:22 +0200 Subject: [PATCH] Fix pseudo-random number generator across operating systems (like Ubuntu vs. Windows). --- include/ioh/problem/dynamic_bin_val/dynamic_bin_val_pareto.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ioh/problem/dynamic_bin_val/dynamic_bin_val_pareto.hpp b/include/ioh/problem/dynamic_bin_val/dynamic_bin_val_pareto.hpp index 3983736a..c7199231 100644 --- a/include/ioh/problem/dynamic_bin_val/dynamic_bin_val_pareto.hpp +++ b/include/ioh/problem/dynamic_bin_val/dynamic_bin_val_pareto.hpp @@ -10,7 +10,7 @@ namespace ioh::problem double pareto_shape; int timestep; - std::default_random_engine random_generator; + std::mt19937 random_generator; std::vector weights; std::vector transformed_x;