Removes rand() use from the raid module.

This commit is contained in:
Andrea Mazzoleni 2014-12-27 11:45:59 +01:00
parent 0a68d357e3
commit 95e4ed03bf
5 changed files with 14 additions and 15 deletions

View file

@ -176,8 +176,8 @@ int raid_test_rec(int mode, int nd, size_t size)
waste = v[nv - 1];
/* fill data disk with random */
raid_mrand_vector(nd, size, v);
/* fill with pseudo-random data with the arbitrary seed "1" */
raid_mrand_vector(1, nd, size, v);
/* setup recov functions */
for (i = 0; i < np; ++i) {
@ -304,8 +304,8 @@ int raid_test_par(int mode, int nd, size_t size)
if (raid_mtest_vector(nv, size, v) != 0)
goto bail;
/* fill with random */
raid_mrand_vector(nv, size, v);
/* fill with pseudo-random data with the arbitrary seed "2" */
raid_mrand_vector(2, nv, size, v);
/* compute the parity */
raid_gen_ref(nd, np, size, v);