summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/spark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/sparkler/spark.c')
-rw-r--r--src/modules/sparkler/spark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sparkler/spark.c b/src/modules/sparkler/spark.c
index 8627baa..3e45cc8 100644
--- a/src/modules/sparkler/spark.c
+++ b/src/modules/sparkler/spark.c
@@ -26,8 +26,8 @@ static int spark_init(particles_t *particles, const particles_conf_t *conf, part
p->props->drag = 20.0;
p->props->mass = 0.1;
p->props->virtual = 0;
- ctxt->decay_rate = rand_within_range(SPARK_MIN_DECAY_RATE, SPARK_MAX_DECAY_RATE);
- ctxt->lifetime = ctxt->longevity = rand_within_range(SPARK_MIN_LIFETIME, SPARK_MAX_LIFETIME);
+ ctxt->decay_rate = rand_within_range(conf->seedp, SPARK_MIN_DECAY_RATE, SPARK_MAX_DECAY_RATE);
+ ctxt->lifetime = ctxt->longevity = rand_within_range(conf->seedp, SPARK_MIN_LIFETIME, SPARK_MAX_LIFETIME);
return 1;
}
© All Rights Reserved