diff options
author | Dan Williams <dan.j.williams@intel.com> | 2013-11-07 01:30:03 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2013-11-14 20:04:40 +0100 |
commit | be9fa5a43641103bf13cd1bb8101a1453da03616 (patch) | |
tree | ea9d77f6036262580f7b28cd067cbe590e880ded /drivers/dma/dmatest.c | |
parent | dmatest: support xor-only, or pq-only channels in tests (diff) | |
download | linux-be9fa5a43641103bf13cd1bb8101a1453da03616.tar.xz linux-be9fa5a43641103bf13cd1bb8101a1453da03616.zip |
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>
Diffstat (limited to 'drivers/dma/dmatest.c')
-rw-r--r-- | drivers/dma/dmatest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index ea829659149a..01ac7112b5fd 100644 --- a/drivers/dma/dmatest.c +++ b/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; } |