]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: use independent random generators for ops and data
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 15:32:23 +0000 (18:32 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 24 Apr 2011 16:12:30 +0000 (19:12 +0300)
commit1fa184a5be96d5c927b4c64d965afd417997e8fc
tree7e8d90b3b772439092330ab42d6faca8638ab6b1
parent548a96fa716666d0bb6095f1f38aa167c47215cd
fs-tests: use independent random generators for ops and data

Currently integck uses the same global random generator for everything -
for choosing the operation, generating the data, and for checking. This
makes integck to become stuck sometimes. My guess this is because of
we somehow re-set it back with srand() when checking files.

This patch makes integck use different generators for data and for
choosing operations by using rand_r() with own seed for operations.

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