summaryrefslogtreecommitdiff
path: root/src/modules/spiro
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/spiro
parent95ef32f1a667af567b9d3173fe456154e522dfde (diff)
modules/*: remove srand() initializations
Just rely on til_init()'s srand() ensuring things are fresh.
Diffstat (limited to 'src/modules/spiro')
-rw-r--r--src/modules/spiro/spiro.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/modules/spiro/spiro.c b/src/modules/spiro/spiro.c
index 20fd7f0..ddbc33d 100644
--- a/src/modules/spiro/spiro.c
+++ b/src/modules/spiro/spiro.c
@@ -38,8 +38,6 @@ static void * spiro_create_context(unsigned ticks, unsigned num_cpus, void *setu
if (!ctxt)
return NULL;
- srand(ticks + getpid());
-
ctxt->r=.25f+(rand()/(float)RAND_MAX)*.5f;
if(ctxt->r>.5f)
ctxt->r_dir=-1;
© All Rights Reserved