[PATCH] Fix random seed for numjobs > 1
authorJens Axboe <jens.axboe@oracle.com>
Sat, 17 Feb 2007 01:09:01 +0000 (02:09 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 17 Feb 2007 01:09:01 +0000 (02:09 +0100)
commit2f073b09812255edca0f5854d36720418db88912
tree6f5171d0cc958b63b5341f074cf79225f2a9fe8d
parent5bf13a5a5f01986c5b87db26f0cadf95af133188
[PATCH] Fix random seed for numjobs > 1

If you had numjobs larger than 1, then each shared job would get the
same random seed, resulting in the exact same io pattern. Multiply
the seed with the thread number, that will still get repeatable
patterns but only per-thread/process.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c