mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
fixed random walk
This commit is contained in:
parent
91bc742528
commit
4b957af924
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user