Skip to content

Commit

Permalink
unit_test/sparse: std::random_shuffle -> std::shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Jan 11, 2022
1 parent 900c29f commit 0108bf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unit_test/sparse/Test_Sparse_gauss_seidel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#include <iostream>
#include <complex>
#include <map>
#include <random>
#include <vector>
#include "KokkosSparse_gauss_seidel.hpp"
#include "KokkosSparse_partitioning_impl.hpp"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0108bf5

Please sign in to comment.