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

This commit is contained in:
Andrey Kamaev 2012-10-10 18:07:03 +04:00
parent 0e314163e5
commit 423837ddae

View File

@ -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();