From ae5661d5dcf0a17b5af0b1ed66d61a2a1f941541 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 16 Jan 2013 17:55:27 +0400 Subject: [PATCH] Fix random failures of Split and Merge tests --- modules/core/test/test_mat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/test/test_mat.cpp b/modules/core/test/test_mat.cpp index cf045e720f..8471eae49b 100644 --- a/modules/core/test/test_mat.cpp +++ b/modules/core/test/test_mat.cpp @@ -925,7 +925,7 @@ protected: RNG& rng = theRNG(); Size mSize(rng.uniform(minMSize, maxMSize), rng.uniform(minMSize, maxMSize)); - size_t mvSize = rng(maxMvSize); + size_t mvSize = rng.uniform(1, maxMvSize); int res = cvtest::TS::OK, curRes = res; curRes = run_case(CV_8U, mvSize, mSize, rng);