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 <l...@sdf.org> > Cc: Daniel Axtens <d...@axtens.net> > Cc: Herbert Xu <herb...@gondor.apana.org.au> > Cc: linuxppc-dev@lists.ozlabs.org > Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> > Cc: Paul Mackerras <pau...@samba.org> > Cc: Michael Ellerman <m...@ellerman.id.au> > Acked-by: Daniel Axtens <d...@axtens.net>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/80d04b7fabe161a23d143b3bfcfca1b0 cheers