From e1abc416cfc25ddeaf11d919fc10afdadbfa0670 Mon Sep 17 00:00:00 2001 From: Olexa Bilaniuk Date: Tue, 3 Mar 2015 11:48:41 -0500 Subject: [PATCH] Changed seeding in initialization. The call to rand()/random() is now a call to (unsigned)cv::theRNG(). --- modules/calib3d/src/rhorefc.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/calib3d/src/rhorefc.cpp b/modules/calib3d/src/rhorefc.cpp index 4abbd4ec3d..7b30825064 100644 --- a/modules/calib3d/src/rhorefc.cpp +++ b/modules/calib3d/src/rhorefc.cpp @@ -45,6 +45,7 @@ /* Includes */ #include +#include #include #include #include @@ -476,11 +477,7 @@ inline int RHO_HEST_REFC::initialize(void){ lm.tmp1 = NULL; lm.Jte = NULL; -#ifdef _WIN32 - fastSeed(rand()); -#else - fastSeed(random()); -#endif + fastSeed((unsigned)cv::theRNG()); int areAllAllocsSuccessful = ctrl.smpl &&