Commit 423837dd authored by Andrey Kamaev's avatar Andrey Kamaev

Restore theRNG seed reset on test SetUp as it is still needed

parent 0e314163
...@@ -1012,6 +1012,8 @@ void TestBase::reportMetrics(bool toJUnitXML) ...@@ -1012,6 +1012,8 @@ void TestBase::reportMetrics(bool toJUnitXML)
void TestBase::SetUp() void TestBase::SetUp()
{ {
cv::theRNG().state = param_seed; // this rng should generate same numbers for each run
#ifdef HAVE_TBB #ifdef HAVE_TBB
if (param_tbb_nthreads > 0) { if (param_tbb_nthreads > 0) {
p_tbb_initializer.release(); p_tbb_initializer.release();
......
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