Re: arch/powerpc/crypto/crc-vpmsum_test: Use cheaper random numbers for self-test

2019-04-21 Thread Michael Ellerman
On Thu, 2019-03-21 at 10:42:22 UTC, George Spelvin wrote: > This code was filling a 64K buffer from /dev/urandom in order to > compute a CRC over (on average half of) it by two different methods, > comparing the CRCs, and repeating. > > This is not a remotely security-critical application, so use

Re: [PATCH] arch/powerpc/crypto/crc-vpmsum_test: Use cheaper random numbers for self-test

2019-03-21 Thread Daniel Axtens
Hi George, > This code was filling a 64K buffer from /dev/urandom in order to > compute a CRC over (on average half of) it by two different methods, > comparing the CRCs, and repeating. > > This is not a remotely security-critical application, so use the far > faster and cheaper prandom_u32()

[PATCH] arch/powerpc/crypto/crc-vpmsum_test: Use cheaper random numbers for self-test

2019-03-21 Thread George Spelvin
This code was filling a 64K buffer from /dev/urandom in order to compute a CRC over (on average half of) it by two different methods, comparing the CRCs, and repeating. This is not a remotely security-critical application, so use the far faster and cheaper prandom_u32() generator. And, while