summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-07-20 21:28:09 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-07-20 21:28:09 -0700
commit56e8c6bea343f81d8c87e73eeffd1d2546a8949c (patch)
tree87c024efdc7795dacde7910442466f60786163f1 /src/modules
parentb38db01c835fa222aa11ace3a2d84095fe2c3f83 (diff)
modules/checkers: one more rand/rand_r conversion
wired up to til_module_context.seed
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/checkers/checkers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/checkers/checkers.c b/src/modules/checkers/checkers.c
index 7eee608..5554e21 100644
--- a/src/modules/checkers/checkers.c
+++ b/src/modules/checkers/checkers.c
@@ -203,7 +203,7 @@ static void checkers_render_fragment(til_module_context_t *context, unsigned tic
}
if (fill == CHECKERS_FILL_RANDOM || fill == CHECKERS_FILL_MIXED)
- fill = rand() % CHECKERS_FILL_RANDOM; /* TODO: mixed should have a setting for controlling the ratios */
+ fill = rand_r(&ctxt->til_module_context.seed) % CHECKERS_FILL_RANDOM; /* TODO: mixed should have a setting for controlling the ratios */
switch (ctxt->setup.fill) {
case CHECKERS_FILL_SAMPLED:
© All Rights Reserved