Skip to content

Commit be9fa5a

Browse files
committed
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>
1 parent a9e5549 commit be9fa5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/dmatest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static unsigned long dmatest_random(void)
176176
{
177177
unsigned long buf;
178178

179-
get_random_bytes(&buf, sizeof(buf));
179+
prandom_bytes(&buf, sizeof(buf));
180180
return buf;
181181
}
182182

0 commit comments

Comments
 (0)