]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: use rand_r everywhere
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 15:51:17 +0000 (18:51 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 24 Apr 2011 16:12:30 +0000 (19:12 +0300)
commitd6035bcf5affd4e67d115cc9cf562a00a60c44e7
treea8b5e47141f15fcc6034295fef25ff6f2427f655
parent1fa184a5be96d5c927b4c64d965afd417997e8fc
fs-tests: integck: use rand_r everywhere

Instead of using rand_r with own seed for operations and rand() with
global state for data it is cleaner to use rand_r with own different
states for these things. This patch eliminates 'srand()' and 'rand()'
usage.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/integck.c