summaryrefslogtreecommitdiff
path: root/lib/lfsr.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-12-04 13:12:25 +0100
committerJens Axboe <axboe@kernel.dk>2012-12-04 13:12:25 +0100
commit82af46be1fa0c0e188bbb6723008fa33a510606f (patch)
tree53647d98731d6f4cdd676aaa0cddfa1420bdd73b /lib/lfsr.h
parentd24945f0f0538bea41704cbd9b593b350ca9bb0d (diff)
downloadfio-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lfsr.h b/lib/lfsr.h
index 0de9ea8e..09f5ac0b 100644
--- a/lib/lfsr.h
+++ b/lib/lfsr.h
@@ -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