diff options
-rw-r--r-- | scripts/kconfig/conf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index a38787a881ea..8d6f17490c5e 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c | |||
@@ -374,7 +374,8 @@ static int conf_choice(struct menu *menu) | |||
374 | continue; | 374 | continue; |
375 | break; | 375 | break; |
376 | case set_random: | 376 | case set_random: |
377 | def = (random() % cnt) + 1; | 377 | if (is_new) |
378 | def = (random() % cnt) + 1; | ||
378 | case set_default: | 379 | case set_default: |
379 | case set_yes: | 380 | case set_yes: |
380 | case set_mod: | 381 | case set_mod: |