mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
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 */
|
||||
#include <precomp.hpp>
|
||||
#include <opencv2/core.hpp>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user