Commit 66439bca authored by Davis King's avatar Davis King

made tests more repeatable

parent b9332698
...@@ -1419,6 +1419,10 @@ namespace ...@@ -1419,6 +1419,10 @@ namespace
void perform_test ( void perform_test (
) )
{ {
// Seed the random number generator the same way every time we run the tests so
// they are repeatable.
srand(0);
test_tagging(); test_tagging();
#ifdef DLIB_USE_CUDA #ifdef DLIB_USE_CUDA
test_conv(); test_conv();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment