1
0
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:
Alexander Alekhin
2020-11-26 08:55:15 +00:00
parent d65c6af3a5
commit 7afd48658c
3 changed files with 9 additions and 5 deletions
+3
View File
@@ -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__