Skip to content

Commit

Permalink
Merge pull request #301 from rheiland/fix-custom-division-seedrandom
Browse files Browse the repository at this point in the history
conditional SeedRandom
  • Loading branch information
MathCancer authored Oct 11, 2024
2 parents e0a114c + cac631c commit 7cc61b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sample_projects/custom_division/custom_modules/custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@
void create_cell_types( void )
{
// set the random seed
SeedRandom( parameters.ints("random_seed") );
if (parameters.ints.find_index("random_seed") != -1)
{
SeedRandom(parameters.ints("random_seed"));
}

/*
Put any modifications to default cell definition here if you
Expand Down

0 comments on commit 7cc61b1

Please sign in to comment.