rdma: fixup compile issue
[fio.git] / engines / rdma.c
index 87b061a2e61788563fff7ac05d69e06b1b8e3f29..4d81c7da65004f0b0eb2afa00ec5087eb103221f 100644 (file)
@@ -46,6 +46,7 @@
 #include <inttypes.h>
 
 #include "../fio.h"
+#include "../hash.h"
 
 #ifdef FIO_HAVE_RDMA
 
@@ -1212,7 +1213,7 @@ static int fio_rdmaio_setup(struct thread_data *td)
                rd = malloc(sizeof(*rd));;
 
                memset(rd, 0, sizeof(*rd));
-               init_rand_seed(&rd->rand_state, GOLDEN_RATIO_PRIME);
+               init_rand_seed(&rd->rand_state, (unsigned int) GOLDEN_RATIO_PRIME);
                td->io_ops->data = rd;
        }