fixed random walk

This commit is contained in:
Kent Overstreet 2010-05-23 17:24:43 -08:00
parent 91bc742528
commit 4b957af924

View File

@ -162,7 +162,8 @@ int main(int argc, char **argv)
nbytes = randsize ? drand48() * 16 + 1 : 1; nbytes = randsize ? drand48() * 16 + 1 : 1;
nbytes <<= 12; nbytes <<= 12;
offset += walk ? normal() * 10 : random(); offset >>= 12;
offset += walk ? normal() * 64 : random();
offset %= size; offset %= size;
offset <<= 12; offset <<= 12;