summaryrefslogtreecommitdiff
path: root/lib/lfsr.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-01-21 09:42:49 -0700
committerJens Axboe <axboe@kernel.dk>2013-01-21 09:42:49 -0700
commit0415406ff0a7ced100565c4cba1322705b7fdb0a (patch)
tree436ebdace49e4eae6a8fa2e1f2e7a5f2727bf764 /lib/lfsr.h
parentba458c2f1d12c54fb4cfd4918a4e4d72d84b55a4 (diff)
downloadfio-0415406ff0a7ced100565c4cba1322705b7fdb0a.tar.gz
fio-0415406ff0a7ced100565c4cba1322705b7fdb0a.tar.bz2
lfsr: add lfsr_reset()
This enables us to restart a sequence. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/lfsr.h')
-rw-r--r--lib/lfsr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lfsr.h b/lib/lfsr.h
index 898646e2..45d7028c 100644
--- a/lib/lfsr.h
+++ b/lib/lfsr.h
@@ -20,5 +20,6 @@ struct fio_lfsr {
int lfsr_next(struct fio_lfsr *fl, uint64_t *off, uint64_t);
int lfsr_init(struct fio_lfsr *fl, uint64_t size, unsigned long seed);
+void lfsr_reset(struct fio_lfsr *fl, unsigned long seed);
#endif