]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - crypto/async_tx/raid6test.c
raid6test: use prandom_bytes()
[karo-tx-linux.git] / crypto / async_tx / raid6test.c
index aa2b0270ed16d007861c27dfdb54fb54e8a0e19b..4a92bac744dce500a209f5e4e6033d465eff5dc9 100644 (file)
@@ -46,15 +46,10 @@ static void callback(void *param)
 
 static void makedata(int disks)
 {
-       int i, j;
+       int i;
 
        for (i = 0; i < disks; i++) {
-               for (j = 0; j < PAGE_SIZE/sizeof(u32); j += sizeof(u32)) {
-                       u32 *p = page_address(data[i]) + j;
-
-                       *p = random32();
-               }
-
+               prandom_bytes(page_address(data[i]), PAGE_SIZE);
                dataptrs[i] = data[i];
        }
 }