zipf: seed zipf/pareto rand with filename hash and job id
[fio.git] / lib / zipf.h
index a23afe5e88457ffd7b8c7cda83b2d1b9ce6cbb28..dbcaffb2453069442b2aa998267f846c2e15b47f 100644 (file)
@@ -14,10 +14,10 @@ struct zipf_state {
        unsigned long rand_off;
 };
 
-void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta);
+void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed);
 unsigned long long zipf_next(struct zipf_state *zs);
 
-void pareto_init(struct zipf_state *zs, unsigned long nranges, double h);
+void pareto_init(struct zipf_state *zs, unsigned long nranges, double h, unsigned int seed);
 unsigned long long pareto_next(struct zipf_state *zs);
 
 #endif