Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/RandomNumbers/unittests/RandomNumberEngineFactoryUnitTest.cpp

    r0275ad rc14c78  
    130130
    131131  // change the prototype directly
    132   CPPUNIT_ASSERT ( 0 != prototype.getseed() );
    133   prototype.seed(0);
     132  CPPUNIT_ASSERT ( 2 != prototype.getseed() );
     133  prototype.seed(2);  // note for this prototype seed of 0 is not allowd by boost::random
    134134
    135135  // check that prototype has indeed been manipulated
    136136  rndA_2 = RandomNumberEngineFactory::getInstance().
    137137      getProduct(RandomNumberEngineFactory::minstd_rand0);
    138   CPPUNIT_ASSERT_EQUAL( (unsigned int)0, rndA_2->getseed() );
     138  CPPUNIT_ASSERT_EQUAL( (unsigned int)2, rndA_2->getseed() );
    139139  CPPUNIT_ASSERT( rndA_2->getseed() != rndA_1->getseed());
    140140
Note: See TracChangeset for help on using the changeset viewer.