--- trunk/OOPSE/libmdtools/mpiSimulation.cpp 2003/04/03 20:21:54 447 +++ trunk/OOPSE/libmdtools/mpiSimulation.cpp 2003/08/26 20:37:30 726 @@ -10,8 +10,6 @@ #include "fortranWrappers.hpp" #include "randomSPRNG.hpp" -#define BASE_SEED 123456789 - mpiSimulation* mpiSim; mpiSimulation::mpiSimulation(SimInfo* the_entryPlug) @@ -66,7 +64,7 @@ int* mpiSimulation::divideLabor( void ){ int nmol_global, natoms_global; int local_index, index; int smallDiff, bigDiff; - int baseSeed = BASE_SEED; + int baseSeed = entryPlug->getSeed(); int testSum; @@ -82,6 +80,7 @@ int* mpiSimulation::divideLabor( void ){ mpiPlug->nSRIGlobal = entryPlug->n_SRI; mpiPlug->nMolGlobal = entryPlug->n_mol; + myRandom = new randomSPRNG( baseSeed ); a = 3.0 * (double)mpiPlug->nMolGlobal / (double)mpiPlug->nAtomsGlobal;