]> www.infradead.org Git - mtd-utils.git/commit
ubinize/ubiformat: improve random number seeding
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 28 Sep 2009 08:50:51 +0000 (11:50 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 28 Sep 2009 08:50:51 +0000 (11:50 +0300)
commit75d97ca45b74eccc01b18f44040f946d9d5df9f5
tree09f65340037347155934eda7ac2123cc0614915a
parent0e63a4c4f1ebc31f545835bd018174414928fc6f
ubinize/ubiformat: improve random number seeding

Add current time to the PID to improve the pseudo-random number
generator seeding. Also, use 'rand()' instead of 'random()', because
'srand()' is for 'rand()'.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/src/common.c
ubi-utils/src/common.h
ubi-utils/src/ubiformat.c
ubi-utils/src/ubinize.c