diff options
author | Dan Williams <dan.j.williams@intel.com> | 2013-11-06 19:30:03 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2013-11-14 14:04:40 -0500 |
commit | be9fa5a43641103bf13cd1bb8101a1453da03616 (patch) | |
tree | ea9d77f6036262580f7b28cd067cbe590e880ded | |
parent | a9e554957de406d6adc581731f571b8a1503f6b0 (diff) |
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>
-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) | |||
176 | { | 176 | { |
177 | unsigned long buf; | 177 | unsigned long buf; |
178 | 178 | ||
179 | get_random_bytes(&buf, sizeof(buf)); | 179 | prandom_bytes(&buf, sizeof(buf)); |
180 | return buf; | 180 | return buf; |
181 | } | 181 | } |
182 | 182 | ||