From 0108bf5e630d16f7b7d8fa301f38b0805b63ad25 Mon Sep 17 00:00:00 2001 From: Evan Harvey Date: Tue, 11 Jan 2022 11:52:45 -0700 Subject: [PATCH] unit_test/sparse: std::random_shuffle -> std::shuffle --- unit_test/sparse/Test_Sparse_gauss_seidel.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unit_test/sparse/Test_Sparse_gauss_seidel.hpp b/unit_test/sparse/Test_Sparse_gauss_seidel.hpp index 3d3e5757f9..fc4ee67310 100644 --- a/unit_test/sparse/Test_Sparse_gauss_seidel.hpp +++ b/unit_test/sparse/Test_Sparse_gauss_seidel.hpp @@ -56,6 +56,7 @@ #include #include #include +#include #include #include "KokkosSparse_gauss_seidel.hpp" #include "KokkosSparse_partitioning_impl.hpp" @@ -569,7 +570,8 @@ void test_gauss_seidel_long_rows(lno_t numRows, lno_t numLongRows, else rowLengths.push_back(nnzPerShortRow); } - std::random_shuffle(rowLengths.begin(), rowLengths.end()); + std::shuffle(rowLengths.begin(), rowLengths.end(), + std::mt19937(std::random_device()())); size_type totalEntries = 0; int randSteps = 1000000; scalar_t offDiagBase;