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.
(cherry picked from commit 1245cd1752)
			
			
This commit is contained in:
		 Roman Donchenko
					Roman Donchenko
				
			
				
					committed by
					
						 Alexander Smorkalov
						Alexander Smorkalov
					
				
			
			
				
	
			
			
			 Alexander Smorkalov
						Alexander Smorkalov
					
				
			
						parent
						
							16bcc30e42
						
					
				
				
					commit
					3231c2f995
				
			| @@ -125,7 +125,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 ); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user