)]}'
{
  "commit": "b0fe551000179c868d46266278a890eab878baca",
  "tree": "2881090d0a3da1508dc51abffe358406e0527fe1",
  "parents": [
    "184832c981fd38b1052f2dfa0262e793fa6c67d3"
  ],
  "author": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Thu Mar 12 15:15:31 2009 +0100"
  },
  "committer": {
    "name": "Sam Ravnborg",
    "email": "sam@ravnborg.org",
    "time": "Sun Mar 15 23:02:07 2009 +0100"
  },
  "message": "kconfig: improve seed in randconfig\n\n\u0027make randconfig\u0027 uses glibc\u0027s rand function, and the seed of\nthat PRNG is set via:\n\n\t\t\tsrand(time(NULL));\n\nBut \u0027time()\u0027 only increases once every second - freezing the\nrandconfig result within a single second.\n\nMy Nehalem testbox does randconfig much faster than 1 second\n and i have a few scripts that do \u0027randconfig until condition X\u0027\nloops.\n\nThose scripts currently waste a lot of CPU time due to randconfig\nchanging its seed only once per second currently.\n\nChange the seed to be micrseconds based. (I checked the statistical\nspread of the seed - the now.tv_sec*now.tv_usec multiplication\nthere further improves it.)\n\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\nCc: Roman Zippel \u003czippel@linux-m68k.org\u003e\n[sam: fix for systems where usec is zero - noticed by Geert Uytterhoeven]\nSigned-off-by: Sam Ravnborg \u003csam@ravnborg.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3e1057f885c6a2496e981e6180611aa6878cede0",
      "old_mode": 33188,
      "old_path": "scripts/kconfig/conf.c",
      "new_id": "d190092c3b6ebf00d09a68fa4e5cb606afacd364",
      "new_mode": 33188,
      "new_path": "scripts/kconfig/conf.c"
    }
  ]
}
