mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
remove some rand functions
* make test more reproducible
This commit is contained in:
@@ -389,11 +389,11 @@ bool Core_EigenTest::check_full(int type)
|
||||
{
|
||||
const int MAX_DEGREE = 7;
|
||||
|
||||
srand((unsigned int)time(0));
|
||||
RNG rng = ::theRNG(); // fix the seed
|
||||
|
||||
for (int i = 0; i < ntests; ++i)
|
||||
{
|
||||
int src_size = (int)(std::pow(2.0, (rand()%MAX_DEGREE)+1.));
|
||||
int src_size = (int)(std::pow(2.0, (rng.uniform(0, MAX_DEGREE) + 1.)));
|
||||
|
||||
cv::Mat src(src_size, src_size, type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user