diff --git a/examples/script_that_sometimes_fails.sh b/examples/script_that_sometimes_fails.sh index 9617495..1da672c 100755 --- a/examples/script_that_sometimes_fails.sh +++ b/examples/script_that_sometimes_fails.sh @@ -14,6 +14,11 @@ prng () { a=1 b=$seed m=$SLURM_NTASKS + # Workaround bug# 4 + if (( $b % $m == 0 )) + then + b+=1 + fi # Recur as many times as the task id to generate different numbers # for each SLURM task. for i in $(seq 1 $ID)