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)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 23 Oct 2013 20:20:48 +0000 (22:20 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/conf.c

index ea4080d6eaab0b93b3752cd858604571547ad353..8b5fdf57921572c93f950d65af93b147fd3a87e3 100644 (file)
@@ -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;
                                }