summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/sparkler.c
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/sparkler/sparkler.c
parent95ef32f1a667af567b9d3173fe456154e522dfde (diff)
modules/*: remove srand() initializations
Just rely on til_init()'s srand() ensuring things are fresh.
Diffstat (limited to 'src/modules/sparkler/sparkler.c')
-rw-r--r--src/modules/sparkler/sparkler.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/modules/sparkler/sparkler.c b/src/modules/sparkler/sparkler.c
index 272c0fd..f13954e 100644
--- a/src/modules/sparkler/sparkler.c
+++ b/src/modules/sparkler/sparkler.c
@@ -35,17 +35,11 @@ static sparkler_setup_t sparkler_default_setup;
static void * sparkler_create_context(unsigned ticks, unsigned num_cpus, void *setup)
{
- static int initialized;
sparkler_context_t *ctxt;
if (!setup)
setup = &sparkler_default_setup;
- if (!initialized) {
- srand(time(NULL) + getpid());
- initialized = 1;
- }
-
ctxt = calloc(1, sizeof(sparkler_context_t));
if (!ctxt)
return NULL;
© All Rights Reserved