summaryrefslogtreecommitdiff
path: root/bcache-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcache-test.c')
-rw-r--r--bcache-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bcache-test.c b/bcache-test.c
index aa14fc8..ab9c77e 100644
--- a/bcache-test.c
+++ b/bcache-test.c
@@ -162,7 +162,8 @@ int main(int argc, char **argv)
nbytes = randsize ? drand48() * 16 + 1 : 1;
nbytes <<= 12;
- offset += walk ? normal() * 10 : random();
+ offset >>= 12;
+ offset += walk ? normal() * 64 : random();
offset %= size;
offset <<= 12;