From 28a0b44e400e2408b65b2bad9a137ec4fc21516d Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 14 Apr 2022 16:56:07 -0700 Subject: modules/*: remove srand() initializations Just rely on til_init()'s srand() ensuring things are fresh. --- src/modules/meta2d/meta2d.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/modules/meta2d') diff --git a/src/modules/meta2d/meta2d.c b/src/modules/meta2d/meta2d.c index ddf20f1..4e8024b 100644 --- a/src/modules/meta2d/meta2d.c +++ b/src/modules/meta2d/meta2d.c @@ -76,7 +76,6 @@ static void * meta2d_create_context(unsigned ticks, unsigned num_cpus, void *set ctxt->din_a = din_new(10, 10, META2D_NUM_BALLS + 2); ctxt->din_b = din_new(10, 10, META2D_NUM_BALLS + 2); - srand(getpid()); ctxt->n_cpus = num_cpus; for (int i = 0; i < META2D_NUM_BALLS; i++) { -- cgit v1.2.3