kconfig/conf: accept a base-16 seed for randconfig
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 20 May 2013 21:17:34 +0000 (23:17 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 18 Jun 2013 21:59:00 +0000 (23:59 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
scripts/kconfig/conf.c

index bde5b95c8c19dadea25bcb357ed6362daeb4f42a..94521c7712c3bdf16252d34e2d958c1b1636848b 100644 (file)
@@ -527,7 +527,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;
                                }