zipf: use 64-bit safe hash for zipf/pareto
[fio.git] / lib / zipf.h
index dbcaffb2453069442b2aa998267f846c2e15b47f..f98ad8182883142e5232000388126534ef3fefe6 100644 (file)
@@ -11,7 +11,7 @@ struct zipf_state {
        double zetan;
        double pareto_pow;
        struct frand_state rand;
-       unsigned long rand_off;
+       uint64_t rand_off;
 };
 
 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed);