summaryrefslogtreecommitdiff
path: root/src/modules/rtv
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/rtv')
-rw-r--r--src/modules/rtv/rtv.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/rtv/rtv.c b/src/modules/rtv/rtv.c
index a9d0399..c4c6dd2 100644
--- a/src/modules/rtv/rtv.c
+++ b/src/modules/rtv/rtv.c
@@ -73,7 +73,13 @@ static char * randomize_module_setup(const rototiller_module_t *module)
return NULL;
while (module->setup(settings, &desc) > 0) {
- if (desc->values) {
+ if (desc->random) {
+ char *value;
+
+ value = desc->random();
+ settings_add_value(settings, desc->key, value);
+ free(value);
+ } else if (desc->values) {
int n;
for (n = 0; desc->values[n]; n++);
© All Rights Reserved