mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
gapi: eliminate std::rand() and RAND_MAX from tests
This commit is contained in:
@@ -34,4 +34,7 @@ static inline void countNonZero_is_forbidden_in_tests_use_norm_instead() {}
|
||||
}
|
||||
#define countNonZero() countNonZero_is_forbidden_in_tests_use_norm_instead()
|
||||
|
||||
#undef RAND_MAX
|
||||
#define RAND_MAX RAND_MAX_is_banned_in_tests__use_cv_theRNG_instead
|
||||
|
||||
#endif // __OPENCV_GAPI_TEST_PRECOMP_HPP__
|
||||
|
||||
Reference in New Issue
Block a user