From 7dec62422b3b00f9a347d37f1e7f89e5bbaba0a9 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 28 Apr 2022 01:45:30 -0700 Subject: modules/julia: randomize initial state Same as for roto and plasma... --- src/modules/julia/julia.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/julia/julia.c b/src/modules/julia/julia.c index 48f85da..95846e3 100644 --- a/src/modules/julia/julia.c +++ b/src/modules/julia/julia.c @@ -67,7 +67,15 @@ static uint32_t colors[] = { static void * julia_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup) { - return calloc(1, sizeof(julia_context_t)); + julia_context_t *ctxt; + + ctxt = calloc(1, sizeof(julia_context_t)); + if (!ctxt) + return NULL; + + ctxt->rr = ((float)rand()) / (float)RAND_MAX * 100.f; + + return ctxt; } -- cgit v1.2.3