mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
test: use cv::theRNG instead of own generator
This commit is contained in:
@@ -591,8 +591,6 @@ void TS::init( const string& modulename )
|
||||
|
||||
if( params.use_optimized == 0 )
|
||||
cv::setUseOptimized(false);
|
||||
|
||||
rng = RNG(params.rng_seed);
|
||||
}
|
||||
|
||||
|
||||
@@ -635,9 +633,6 @@ void TS::update_context( BaseTest* test, int test_case_idx, bool update_ts_conte
|
||||
{
|
||||
current_test_info.rng_seed = param_seed + test_case_idx;
|
||||
current_test_info.rng_seed0 = current_test_info.rng_seed;
|
||||
|
||||
rng = RNG(current_test_info.rng_seed);
|
||||
cv::theRNG() = rng;
|
||||
}
|
||||
|
||||
current_test_info.test = test;
|
||||
|
||||
Reference in New Issue
Block a user