瀏覽代碼

dmatest: use pseudo random numbers

There is no need for dmatest to drain the entropy pool.

It would be nice to one day have repeatable runs, but would need a
larger rework to synchronize and order calls to the rng across test
threads.

Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Dan Williams 12 年之前
父節點
當前提交
be9fa5a436
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/dma/dmatest.c

+ 1 - 1
drivers/dma/dmatest.c

@@ -176,7 +176,7 @@ static unsigned long dmatest_random(void)
 {
 	unsigned long buf;
 
-	get_random_bytes(&buf, sizeof(buf));
+	prandom_bytes(&buf, sizeof(buf));
 	return buf;
 }