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 the far > faster and cheaper prandom_u32() generator. > > And, while we're at it, only fill as much of the buffer as we plan to use. > > Signed-off-by: George Spelvin <[email protected]> > Cc: Daniel Axtens <[email protected]> > Cc: Herbert Xu <[email protected]> > Cc: [email protected] > Cc: Benjamin Herrenschmidt <[email protected]> > Cc: Paul Mackerras <[email protected]> > Cc: Michael Ellerman <[email protected]> > Acked-by: Daniel Axtens <[email protected]>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/80d04b7fabe161a23d143b3bfcfca1b0 cheers
