Skip to content

Commit 8e67963

Browse files
SAR seeds with a different seed each run.
1 parent 1ff3a2a commit 8e67963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/SAR.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
from math import sqrt
1111

1212
# we want initialisation to be identical across all processes
13-
randomSeed(1)
13+
#randomSeed(1)
1414

1515
# we want the array operations to have a different seed across processes
16-
array_urand.seed(10+myid())
16+
array_urand.seed(int(1024*random()))
1717

1818

1919
nsp=int(sys.argv[1]) # initial number of species

0 commit comments

Comments
 (0)