projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix verify random bytes filling
[fio.git]
/
verify.c
diff --git
a/verify.c
b/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