aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index d4737d35e720..a3d2d0b564f4 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -4,11 +4,11 @@
4 */ 4 */
5 5
6#include <ctype.h> 6#include <ctype.h>
7#include <stdlib.h>
8#include <stdio.h> 7#include <stdio.h>
8#include <stdlib.h>
9#include <string.h> 9#include <string.h>
10#include <unistd.h>
11#include <time.h> 10#include <time.h>
11#include <unistd.h>
12#include <sys/stat.h> 12#include <sys/stat.h>
13 13
14#define LKC_DIRECT_LINK 14#define LKC_DIRECT_LINK
@@ -160,7 +160,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
160 } 160 }
161 case set_random: 161 case set_random:
162 do { 162 do {
163 val = (tristate)(random() % 3); 163 val = (tristate)(rand() % 3);
164 } while (!sym_tristate_within_range(sym, val)); 164 } while (!sym_tristate_within_range(sym, val));
165 switch (val) { 165 switch (val) {
166 case no: line[0] = 'n'; break; 166 case no: line[0] = 'n'; break;