NearestNeighborTest: use ts->get_rng() instead of (implicit) theRNG()

This ensures that test data is not dependent on the order the tests are
executed in.
pull/5335/head
Roman Donchenko 10 years ago committed by Dikay900
parent a3b515c524
commit ec0508269a
  1. 2
      modules/features2d/test/test_nearestneighbors.cpp

@ -127,7 +127,7 @@ int NearestNeighborTest::checkFind( const Mat& data )
void NearestNeighborTest::run( int /*start_from*/ ) {
int code = cvtest::TS::OK, tempCode;
Mat desc( featuresCount, dims, CV_32FC1 );
randu( desc, Scalar(minValue), Scalar(maxValue) );
ts->get_rng().fill( desc, RNG::UNIFORM, minValue, maxValue );
createModel( desc );

Loading…
Cancel
Save