Add pareto distribution randomizer
[fio.git] / lib / zipf.h
index 6578ef1c008a88e26397e966fea691e53e83df4b..97a9b32fe6aeedc6b56b87d00545779b7f026d75 100644 (file)
@@ -8,10 +8,14 @@ struct zipf_state {
        double theta;
        double zeta2;
        double zetan;
+       double pareto_pow;
        struct frand_state rand;
 };
 
 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta);
 unsigned long long zipf_next(struct zipf_state *zs);
 
+void pareto_init(struct zipf_state *zs, unsigned long nranges, double h);
+unsigned long long pareto_next(struct zipf_state *zs);
+
 #endif