From fcea8b7b1164a60d6754c7b9639c3fe39a811e59 Mon Sep 17 00:00:00 2001 From: Ladislav Michl Date: Wed, 9 Jan 2008 16:36:19 +0100 Subject: [PATCH] --- yaml --- r: 77968 b: refs/heads/master c: 07f766885879a1fd4502fb8dd531d1fe3c575510 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/conf.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 69cb62017123..40adf78943f6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 75ff4309cdb1d7303750aeed07a5d80382fe2e71 +refs/heads/master: 07f766885879a1fd4502fb8dd531d1fe3c575510 diff --git a/trunk/scripts/kconfig/conf.c b/trunk/scripts/kconfig/conf.c index a3d2d0b564f4..01c2f3505f5d 100644 --- a/trunk/scripts/kconfig/conf.c +++ b/trunk/scripts/kconfig/conf.c @@ -375,7 +375,7 @@ static int conf_choice(struct menu *menu) break; case set_random: if (is_new) - def = (random() % cnt) + 1; + def = (rand() % cnt) + 1; case set_default: case set_yes: case set_mod: @@ -526,7 +526,7 @@ int main(int ac, char **av) break; case 'r': input_mode = set_random; - srandom(time(NULL)); + srand(time(NULL)); break; case 'h': printf("See README for usage info\n");