projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
zipf/pareto: ensure that 0 isn't always the hottest block
[fio.git]
/
lib
/
zipf.h
diff --git
a/lib/zipf.h
b/lib/zipf.h
index c66b06407ef498a22546d6a7421cb904180cd8f4..a23afe5e88457ffd7b8c7cda83b2d1b9ce6cbb28 100644
(file)
--- 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);