Restore theRNG seed reset on test SetUp as it is still needed
This commit is contained in:
parent
0e314163e5
commit
423837ddae
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user