made tests more repeatable

This commit is contained in:
Davis King 2016-05-25 07:07:04 -04:00
parent b9332698fe
commit 66439bca25

View File

@ -1419,6 +1419,10 @@ namespace
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();
#ifdef DLIB_USE_CUDA
test_conv();