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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user