diff --git a/dlib/test/statistics.cpp b/dlib/test/statistics.cpp index 8e1539f86..f395a55bd 100644 --- a/dlib/test/statistics.cpp +++ b/dlib/test/statistics.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include "tester.h" @@ -404,6 +405,8 @@ namespace string str = "DlibRocks"; + std::minstd_rand shuffle_random; + for(int j = 0; j<5 ; j++) { matrix dat; @@ -422,7 +425,7 @@ namespace double exkurdenom = 0; double unbi_exkur = 0; - random_shuffle(str.begin(), str.end()); + std::shuffle(str.begin(), str.end(), shuffle_random); rnum.set_seed(str); for(int i = 0; i