Commit e1abc416 authored by Olexa Bilaniuk's avatar Olexa Bilaniuk

Changed seeding in initialization.

The call to rand()/random() is now a call to (unsigned)cv::theRNG().
parent 0f6ea38e
......@@ -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 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment