summaryrefslogtreecommitdiff
path: root/package/config/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/config/conf.c')
-rw-r--r--package/config/conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/config/conf.c b/package/config/conf.c
index b025d2d66..d69b0aff4 100644
--- a/package/config/conf.c
+++ b/package/config/conf.c
@@ -374,7 +374,8 @@ static int conf_choice(struct menu *menu)
continue;
break;
case set_random:
- def = (random() % cnt) + 1;
+ if (is_new)
+ def = (random() % cnt) + 1;
case set_default:
case set_yes:
case set_mod: