X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0d0eda9cd2c809ad47cddec7d73f339c7bc3ca11..3154ce384e6049740a820fe73b541b6a034b140f:/teshsuite/smpi/coll-allgather/coll-allgather.c diff --git a/teshsuite/smpi/coll-allgather/coll-allgather.c b/teshsuite/smpi/coll-allgather/coll-allgather.c index a6955deda7..7134a58247 100644 --- a/teshsuite/smpi/coll-allgather/coll-allgather.c +++ b/teshsuite/smpi/coll-allgather/coll-allgather.c @@ -17,8 +17,7 @@ int main(int argc, char *argv[]) int size; int status; - srand(sg_actor_self_get_pid()); - int randomTime = rand() %5; + int randomTime = sg_actor_self_get_pid() % 5; sleep(randomTime); MPI_Init(&argc, &argv);