Skip to content

Commit

Permalink
conditional SeedRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
rheiland committed Sep 28, 2024
1 parent 80016c1 commit cac631c
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 cac631c

Please sign in to comment.