mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
a9e554957d
commit
be9fa5a436
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue