Commit 72ed4173 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

Change setRNGSeed implementaion

parent 362d52a3
...@@ -736,7 +736,7 @@ cv::RNG& cv::theRNG() ...@@ -736,7 +736,7 @@ cv::RNG& cv::theRNG()
void cv::setRNGSeed(int seed) void cv::setRNGSeed(int seed)
{ {
getCoreTlsData().get()->rng.state = static_cast<uint64>(seed); theRNG() = RNG(static_cast<uint64>(seed));
} }
......
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