From: Yann E. MORIN Date: Mon, 20 May 2013 21:17:34 +0000 (+0200) Subject: kconfig/conf: accept a base-16 seed for randconfig X-Git-Tag: 1.9.9~20 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=1cfdda61ec3a7dca2bbebbfe3ef307817c6c5127;p=carl9170fw.git kconfig/conf: accept a base-16 seed for randconfig Signed-off-by: "Yann E. MORIN" Signed-off-by: Christian Lamparter --- diff --git a/config/conf.c b/config/conf.c index ea4080d..8b5fdf5 100644 --- a/config/conf.c +++ b/config/conf.c @@ -511,7 +511,7 @@ int main(int ac, char **av) seed_env = getenv("KCONFIG_SEED"); if( seed_env && *seed_env ) { char *endp; - int tmp = (int)strtol(seed_env, &endp, 10); + int tmp = (int)strtol(seed_env, &endp, 0); if (*endp == '\0') { seed = tmp; }