summaryrefslogtreecommitdiff
path: root/src/modules/julia
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/julia')
-rw-r--r--src/modules/julia/julia.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/julia/julia.c b/src/modules/julia/julia.c
index c24e40a..d9cfdff 100644
--- a/src/modules/julia/julia.c
+++ b/src/modules/julia/julia.c
@@ -73,7 +73,7 @@ static void * julia_create_context(unsigned seed, unsigned ticks, unsigned n_cpu
if (!ctxt)
return NULL;
- ctxt->rr = ((float)rand()) / (float)RAND_MAX * 100.f;
+ ctxt->rr = ((float)rand_r(&seed)) / (float)RAND_MAX * 100.f;
return ctxt;
}
© All Rights Reserved