1
0
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:
Maksim Shabunin
2024-06-06 17:29:34 +03:00
parent bef5a87680
commit ef3303716e
3 changed files with 2 additions and 8 deletions
-5
View File
@@ -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;