mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -05:00
Removes rand() use from the raid module.
This commit is contained in:
parent
0a68d357e3
commit
95e4ed03bf
5 changed files with 14 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue