Skip to content

Commit 0b49dcf

Browse files
committed
fix bug reading large random seeds
1 parent a37ee57 commit 0b49dcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/PhysiCell_settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ void PhysiCell_Settings::read_from_pugixml( void )
273273
}
274274
else
275275
{
276-
int seed;
276+
unsigned int seed;
277277
try
278-
{ seed = std::stoi(random_seed); }
278+
{ seed = std::stoul(random_seed); }
279279
catch(const std::exception& e)
280280
{
281281
std::cout << "ERROR: " << random_seed << " is not a valid random seed. It must be an integer. Fix this within <options>." << std::endl;

0 commit comments

Comments
 (0)