Add function setRNGSeed and seed setup in python tests
This commit is contained in:
@@ -734,6 +734,12 @@ cv::RNG& cv::theRNG()
|
||||
return getCoreTlsData().get()->rng;
|
||||
}
|
||||
|
||||
void cv::setRNGSeed(int seed)
|
||||
{
|
||||
getCoreTlsData().get()->rng.state = static_cast<uint64>(seed);
|
||||
}
|
||||
|
||||
|
||||
void cv::randu(InputOutputArray dst, InputArray low, InputArray high)
|
||||
{
|
||||
theRNG().fill(dst, RNG::UNIFORM, low, high);
|
||||
|
Reference in New Issue
Block a user