Commit be9fa5a43641103bf13cd1bb8101a1453da03616

Authored by Dan Williams
1 parent a9e554957d

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/dma/dmatest.c
... ... @@ -176,7 +176,7 @@
176 176 {
177 177 unsigned long buf;
178 178  
179   - get_random_bytes(&buf, sizeof(buf));
  179 + prandom_bytes(&buf, sizeof(buf));
180 180 return buf;
181 181 }
182 182