projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fio 2.0.10
[fio.git]
/
lib
/
rand.c
diff --git
a/lib/rand.c
b/lib/rand.c
index 995035fea742ad211f757bc12427c2160629b4c1..a79fb9c17c321a94e8e4bcfe030193003c80d93f 100644
(file)
--- a/
lib/rand.c
+++ b/
lib/rand.c
@@
-125,6
+125,8
@@
unsigned long fill_random_buf_percentage(struct frand_state *fs, void *buf,
this_len = len;
memset(buf, 0, this_len);
+ len -= this_len;
+ buf += this_len;
}
return r;