projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e31416
)
Restore theRNG seed reset on test SetUp as it is still needed
author
Andrey Kamaev
<andrey.kamaev@itseez.com>
Wed, 10 Oct 2012 14:07:03 +0000
(18:07 +0400)
committer
Andrey Kamaev
<andrey.kamaev@itseez.com>
Wed, 10 Oct 2012 14:07:03 +0000
(18:07 +0400)
modules/ts/src/ts_perf.cpp
patch
|
blob
|
history
diff --git
a/modules/ts/src/ts_perf.cpp
b/modules/ts/src/ts_perf.cpp
index
b9eac49
..
d0194ed
100644
(file)
--- a/
modules/ts/src/ts_perf.cpp
+++ b/
modules/ts/src/ts_perf.cpp
@@
-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();