kconfig: allow specifying the seed for randconfig
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 13 Apr 2013 20:49:13 +0000 (22:49 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 31 May 2013 15:55:47 +0000 (17:55 +0200)
commitd8ff1d671b99a5734d5d8558cdedd0fdfb75d4e8
tree75a1e2d2c4fd5b92ab5bccec92cb02d4e1d75577
parent1eec8c99d1903a1af1ac6a944026c34197dee81b
kconfig: allow specifying the seed for randconfig

For reproducibility, it can be useful to be able to specify the
seed to use to seed the RNG.

Add a new KCONFIG_SEED environment variable which can be set to
the seed to use:
    $ make KCONFIG_SEED=42 randconfig
    $ sha1sum .config
    70a128c8dcc61303069e1be352cce64114dfcbca  .config
    $ make KCONFIG_SEED=42 randconfig
    $ sha1sum .config
    70a128c8dcc61303069e1be352cce64114dfcbca  .config

It's very usefull for eg. debugging the kconfig parser.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/conf.c