Changed seeding in initialization.
The call to rand()/random() is now a call to (unsigned)cv::theRNG().
This commit is contained in:
parent
0f6ea38eac
commit
e1abc416cf
@ -45,6 +45,7 @@
|
|||||||
|
|
||||||
/* Includes */
|
/* Includes */
|
||||||
#include <precomp.hpp>
|
#include <precomp.hpp>
|
||||||
|
#include <opencv2/core.hpp>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -476,11 +477,7 @@ inline int RHO_HEST_REFC::initialize(void){
|
|||||||
lm.tmp1 = NULL;
|
lm.tmp1 = NULL;
|
||||||
lm.Jte = NULL;
|
lm.Jte = NULL;
|
||||||
|
|
||||||
#ifdef _WIN32
|
fastSeed((unsigned)cv::theRNG());
|
||||||
fastSeed(rand());
|
|
||||||
#else
|
|
||||||
fastSeed(random());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
int areAllAllocsSuccessful = ctrl.smpl &&
|
int areAllAllocsSuccessful = ctrl.smpl &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user