summaryrefslogtreecommitdiff
path: root/src/modules/meta2d
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-04-14 16:56:07 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-04-14 16:56:07 -0700
commit28a0b44e400e2408b65b2bad9a137ec4fc21516d (patch)
treef9a27335d7cd45dd96f9be673233e6afa27f1d65 /src/modules/meta2d
parent95ef32f1a667af567b9d3173fe456154e522dfde (diff)
modules/*: remove srand() initializations
Just rely on til_init()'s srand() ensuring things are fresh.
Diffstat (limited to 'src/modules/meta2d')
-rw-r--r--src/modules/meta2d/meta2d.c1
1 files changed, 0 insertions, 1 deletions
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++) {
© All Rights Reserved