Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Core::Array::TestMakeRandom::testRandomSeed (  )  [inline]

Definition at line 79 of file TestMakeRandom.h.

References Impala::Core::Array::Equals(), Impala::Core::Array::MakeRandomScalarReal64(), and Impala::Util::Random::SetSeed().

00080     {
00081         Util::Random rng;
00082         rng.SetSeed(1);
00083         Array2dScalarReal64* a = MakeRandomScalarReal64(3, 3, 1., rng);
00084         rng.SetSeed(1);
00085         Array2dScalarReal64* b = MakeRandomScalarReal64(3, 3, 1., rng);
00086         rng.SetSeed(2);
00087         Array2dScalarReal64* c = MakeRandomScalarReal64(3, 3, 1., rng);
00088         CPPUNIT_ASSERT(Equals(a,b));
00089         CPPUNIT_ASSERT(!Equals(a,c));
00090         delete a;
00091         delete b;
00092         delete c;
00093     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:17:23 2011 for ImpalaSrc by  doxygen 1.5.1