diff options
author | Jens Axboe <axboe@kernel.dk> | 2012-12-04 13:12:25 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-12-04 13:12:25 +0100 |
commit | 82af46be1fa0c0e188bbb6723008fa33a510606f (patch) | |
tree | 53647d98731d6f4cdd676aaa0cddfa1420bdd73b /lib/lfsr.h | |
parent | d24945f0f0538bea41704cbd9b593b350ca9bb0d (diff) | |
download | fio-82af46be1fa0c0e188bbb6723008fa33a510606f.tar.gz fio-82af46be1fa0c0e188bbb6723008fa33a510606f.tar.bz2 |
lfsr: ensure that the cycle follows the randrepeat= setting
Use the regular block offset seed to "seed" the lfsr generator,
so that it obeys randrepeat=0/1 as well.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/lfsr.h')
-rw-r--r-- | lib/lfsr.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,6 +19,6 @@ struct fio_lfsr { }; int lfsr_next(struct fio_lfsr *fl, uint64_t *off); -int lfsr_init(struct fio_lfsr *fl, uint64_t size); +int lfsr_init(struct fio_lfsr *fl, uint64_t size, unsigned long seed); #endif |