1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +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
+1 -2
View File
@@ -611,7 +611,7 @@ public:
};
// get RNG to generate random input data for a test
RNG& get_rng() { return rng; }
RNG& get_rng() { return cv::theRNG(); }
// returns the current error code
TS::FailureCode get_err_code() { return TS::FailureCode(current_test_info.code); }
@@ -629,7 +629,6 @@ public:
protected:
// these are allocated within a test to try to keep them valid in case of stack corruption
RNG rng;
// information about the current test
TestInfo current_test_info;