mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -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
|
|
@ -1588,11 +1588,6 @@ void** malloc_nofail_vector_align(int nd, int n, size_t size, void** freeptr)
|
|||
return ptr;
|
||||
}
|
||||
|
||||
void mrand_vector(int n, size_t size, void** vv)
|
||||
{
|
||||
raid_mrand_vector(n, size, vv);
|
||||
}
|
||||
|
||||
void mtest_vector(int n, size_t size, void** vv)
|
||||
{
|
||||
if (raid_mtest_vector(n, size, vv) != 0) {
|
||||
|
|
|
|||
|
|
@ -485,7 +485,7 @@ void** malloc_nofail_vector_align(int nd, int n, size_t size, void** freeptr);
|
|||
/**
|
||||
* Fills the memory vector with random data.
|
||||
*/
|
||||
void mrand_vector(int n, size_t size, void** vv);
|
||||
void mrand_vector(unsigned seed, int n, size_t size, void** vv);
|
||||
|
||||
/**
|
||||
* Tests the memory vector for RAM problems.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue