Fix verify random bytes filling
[fio.git] / verify.c
index 32e7a041dec521b52574f0de1b9d37e28604f888..794244a9b495240974f26f1e4f972f38ec1cc8c2 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -12,10 +12,10 @@ static void fill_random_bytes(struct thread_data *td,
                              unsigned char *p, unsigned int len)
 {
        unsigned int todo;
-       double r;
+       int r;
 
        while (len) {
-               r = os_random_double(&td->verify_state);
+               r = os_random_long(&td->verify_state);
 
                /*
                 * lrand48_r seems to be broken and only fill the bottom