summaryrefslogtreecommitdiff
path: root/lib/zipf.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-11-07 14:04:11 +0100
committerJens Axboe <axboe@kernel.dk>2012-11-07 14:04:11 +0100
commitb2b0b7534d857e4ca22429a9f573791b8e03264c (patch)
tree71cfdaed3e528706014d053d028d8135ae75dcfe /lib/zipf.h
parent078189c148e6e0e42894033cf5e19bd6028ca288 (diff)
downloadfio-b2b0b7534d857e4ca22429a9f573791b8e03264c.tar.gz
fio-b2b0b7534d857e4ca22429a9f573791b8e03264c.tar.bz2
zipf/pareto: ensure that 0 isn't always the hottest block
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/zipf.h')
-rw-r--r--lib/zipf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/zipf.h b/lib/zipf.h
index c66b0640..a23afe5e 100644
--- a/lib/zipf.h
+++ b/lib/zipf.h
@@ -11,6 +11,7 @@ struct zipf_state {
double zetan;
double pareto_pow;
struct frand_state rand;
+ unsigned long rand_off;
};
void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta);