We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a37ee57 + 1ab6978 commit b9a3c8aCopy full SHA for b9a3c8a
core/PhysiCell_utilities.cpp
@@ -92,6 +92,12 @@ void setup_rng( void )
92
warned = true;
93
}
94
std::cout << "Setting up RNG with seed " << physicell_random_seed << std::endl;
95
+
96
+ // save the seed to random_seed.txt
97
+ std::ofstream out(PhysiCell_settings.folder + "/random_seed.txt");
98
+ out << physicell_random_seed << std::endl;
99
+ out.close();
100
101
physicell_PRNG_generator.seed( physicell_random_seed );
102
103
// now get number of threads and set up a seed for each thread
0 commit comments