// RandomSeed_t.cpp #include "RandomSeed.h" #include #include #include using std::cout; using std::cerr; using std::endl; using std::string; // number of seeds to test enum { MAX = 100 }; //********************************************************************** int main( ) { string component = "RandomSeed"; string ok_prefix = component + " (I): "; string error_prefix = component + " test (E): "; cout << ok_prefix << "-------- Testing component " + component + ". --------" << endl; // Make sure assert is enabled. bool assert_flag = false; assert ( ( assert_flag = true, assert_flag ) ); if ( ! assert_flag ) { cerr << "Assert is disabled" << endl; return 1; } //******************************************************************** cout << ok_prefix << "Test for " << MAX << " unique values." << endl; int seed[MAX]; for ( int i=0; i