Restore theRNG seed reset on test SetUp as it is still needed
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Wed, 10 Oct 2012 14:07:03 +0000 (18:07 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Wed, 10 Oct 2012 14:07:03 +0000 (18:07 +0400)
modules/ts/src/ts_perf.cpp

index b9eac49..d0194ed 100644 (file)
@@ -1012,6 +1012,8 @@ void TestBase::reportMetrics(bool toJUnitXML)
 
 void TestBase::SetUp()
 {
+    cv::theRNG().state = param_seed; // this rng should generate same numbers for each run
+
 #ifdef HAVE_TBB
     if (param_tbb_nthreads > 0) {
         p_tbb_initializer.release();