G-API: eliminate std::rand() and RAND_MAX from tests#18929
Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom Nov 26, 2020
Merged
G-API: eliminate std::rand() and RAND_MAX from tests#18929opencv-pushbot merged 1 commit intoopencv:masterfrom
opencv-pushbot merged 1 commit intoopencv:masterfrom
Conversation
| // test that we can obtain it via RMat.as<T>() method | ||
| TEST(RMat, UsageInBackend) { | ||
| int i = std::rand(); | ||
| int i = 123456; |
Contributor
There was a problem hiding this comment.
123456 is definitely a random number. Is call of cv::RNG() equal to call of rand()?
Member
Author
There was a problem hiding this comment.
randomization is not really necessary for this test case.
/cc @rgarnov
Contributor
There was a problem hiding this comment.
I'm wondering why you didn't use analogue in this case? And i don't mind 123456.
mpashchenkov
approved these changes
Nov 26, 2020
Contributor
mpashchenkov
left a comment
There was a problem hiding this comment.
It seems logical about parsers.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compilation warning (clang):