aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/cleanpatch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-12 15:15:31 +0100
committerSam Ravnborg <sam@ravnborg.org>2009-03-15 23:02:07 +0100
commitb0fe551000179c868d46266278a890eab878baca (patch)
tree2881090d0a3da1508dc51abffe358406e0527fe1 /scripts/cleanpatch
parentkconfig: fix randconfig for choice blocks (diff)
kconfig: improve seed in randconfig
'make randconfig' uses glibc's rand function, and the seed of that PRNG is set via: srand(time(NULL)); But 'time()' only increases once every second - freezing the randconfig result within a single second. My Nehalem testbox does randconfig much faster than 1 second and i have a few scripts that do 'randconfig until condition X' loops. Those scripts currently waste a lot of CPU time due to randconfig changing its seed only once per second currently. Change the seed to be micrseconds based. (I checked the statistical spread of the seed - the now.tv_sec*now.tv_usec multiplication there further improves it.) Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Roman Zippel <zippel@linux-m68k.org> [sam: fix for systems where usec is zero - noticed by Geert Uytterhoeven] Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions
0bb4b39050d87f70371637?s=128&d=retro' />Roland McGrath1-8/+1 2005-09-07* timezone/africa: Update from tzdata2005m.Ulrich Drepper1-6/+19 2005-01-26Update.Ulrich Drepper1-10/+10 2004-12-22(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper1-20/+14 2007-07-122.5-18.1Jakub Jelinek1-14/+20 2004-07-29Update.Ulrich Drepper1-2/+7 2003-10-06Update.Ulrich Drepper1-2/+2 2002-04-06Update.Ulrich Drepper1-1/+3 2002-01-29Update.Ulrich Drepper1-1/+2 2001-10-14Update.Ulrich Drepper1-4/+5 2001-03-16Update.Ulrich Drepper1-1/+3 2000-12-16Update.Ulrich Drepper1-1/+2 2000-10-15Update from tzdata2000g.Ulrich Drepper1-1/+3 2000-01-19Update.Ulrich Drepper1-1/+3 1999-11-10Update.Ulrich Drepper1-1/+2 1998-08-11Update. Old logs are in ChangeLog.7.Ulrich Drepper1-2/+1