Skip to content

Commit

Permalink
dmatest: use pseudo random numbers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Williams committed Nov 14, 2013
1 parent a9e5549 commit be9fa5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dmatest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit be9fa5a

Please sign in to comment.