Skip to content

Commit 47253ad

Browse files
committed
fix recipes that re-seed the RNG to use rdunif64()
1 parent 3e6bf13 commit 47253ad

7 files changed

Lines changed: 7 additions & 6 deletions

QtSLiM/recipes/Recipe 9.2 - Making sweeps conditional on fixation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ initialize() {
4040
sim.readFromPopulationFile(tempdir() + "slim_" + simID + ".txt");
4141

4242
// start a newly seeded run
43-
setSeed(rdunif(1, 0, asInteger(2^62) - 1));
43+
setSeed(rdunif64(1));
4444

4545
// re-introduce the sweep mutation
4646
target = sample(p1.haplosomes, 1);

QtSLiM/recipes/Recipe 9.3 - Making sweeps conditional on establishment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ initialize() {
4141
sim.readFromPopulationFile(tempdir() + "slim_" + simID + ".txt");
4242

4343
// start a newly seeded run
44-
setSeed(rdunif(1, 0, asInteger(2^62) - 1));
44+
setSeed(rdunif64(1));
4545

4646
// re-introduce the sweep mutation
4747
target = sample(p1.haplosomes, 1);

QtSLiM/recipes/Recipe 9.6.2 - A sweep from standing variation at a predetermined locus.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ initialize() {
4242
sim.readFromPopulationFile(tempdir() + "slim_" + simID + ".txt");
4343

4444
// start a newly seeded run
45-
setSeed(rdunif(1, 0, asInteger(2^62) - 1));
45+
setSeed(rdunif64(1));
4646

4747
// re-introduce the sweep mutation
4848
target = sample(p1.haplosomes, 1);

SLiMgui/Recipes/Recipe 9.2 - Making sweeps conditional on fixation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ initialize() {
4040
sim.readFromPopulationFile(tempdir() + "slim_" + simID + ".txt");
4141

4242
// start a newly seeded run
43-
setSeed(rdunif(1, 0, asInteger(2^62) - 1));
43+
setSeed(rdunif64(1));
4444

4545
// re-introduce the sweep mutation
4646
target = sample(p1.haplosomes, 1);

SLiMgui/Recipes/Recipe 9.3 - Making sweeps conditional on establishment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ initialize() {
4141
sim.readFromPopulationFile(tempdir() + "slim_" + simID + ".txt");
4242

4343
// start a newly seeded run
44-
setSeed(rdunif(1, 0, asInteger(2^62) - 1));
44+
setSeed(rdunif64(1));
4545

4646
// re-introduce the sweep mutation
4747
target = sample(p1.haplosomes, 1);

SLiMgui/Recipes/Recipe 9.6.2 - A sweep from standing variation at a predetermined locus.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ initialize() {
4242
sim.readFromPopulationFile(tempdir() + "slim_" + simID + ".txt");
4343

4444
// start a newly seeded run
45-
setSeed(rdunif(1, 0, asInteger(2^62) - 1));
45+
setSeed(rdunif64(1));
4646

4747
// re-introduce the sweep mutation
4848
target = sample(p1.haplosomes, 1);

VERSIONS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ multitrait branch:
170170
add a changeColors() ellipsis variant that takes a Palette object to define its colors
171171
improve code completion intelligence in SLiMgui
172172
update recipes for multitrait: 9.4, 9.6.1, 9.6.2, 10.5, 10.6 (this one is an important change, now showing per-mutation dominance coefficients!), 14.6, and 16.8
173+
fix recipes that re-seed the RNG to use rdunif64() now: 9.2, 9.3, 9.6.2
173174

174175

175176
version 5.2 (Eidos version 4.2):

0 commit comments

Comments
 (0)