commit | 6d40f568cdec7d654691e6eed61cf5a32e918c03 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Wed May 07 08:35:38 2003 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Wed May 07 08:35:38 2003 -0400 |
tree | 20f5851e72da759ae6acc77e9fdb2d2c4b38e559 | |
parent | 58f9d9e679152742f1352adc0c072176d128a4d4 [diff] |
badblocks.c (test_rw): Fix minor memory leak with test_rw() is called for multiple passes. (test_nd): Fix bug in chosing randomness for the non-destructive test. We were only using 1 bit of randomness per byte instead of 8 due to a bit-shift bug. Also, initialize the random number generator from the time in main(). Thanks to Thayne Harbaugh for pointing out these bugs.