On Mon, 27 Jul 2020 23:20:06 +0100 Ken Moffat via blfs-support <blfs-support@lists.linuxfromscratch.org> wrote:
> Putting together a fresh build, one of the things I install on this > machines is haveged, because two years ago problems with entropy > after using a SSD in a couple of machines led me to add it. > > Until now I've been building haveged on a couple of desktop machines > which have integrated graphics and SSDs. On other lower-end > machines with SSDs (Skylake i3, Ryzen3 with R600 video card) I did > not have trouble (i.e. slow boots for e.g. unbound) so I don't build > haveged on those. And I've been running its tests to get a warn > feeling. > > In this build I've moved from haveged-1.9.11 to 1.9.13. For the > first time ever, the tests failed (and therefore stopped my build). > > Test Results > Sample: 16777216 bytes > Entropy: 7.999986 bits > Chi-Square: 314.967041(0.619551%) > Mean: 127.527005 > PI: 3.140198(-0.044392%) > Correlation: -0.000550 > Check Fail: chisqr:0.619551% not in 1.000000-99.000000 > make[2]: *** [Makefile:573: check-local] Error 255 > > Apart from the Chi-Square result (over 300, tiny percentage) the > results seemed on a par with previous results. Since I can't see > any obvious reason for this failure, I thought I might let it go > by using make -k check and adding '|| true' in my script. > > Ran and installed, the results were now ok ! > > Test Results > Sample: 16777216 bytes > Entropy: 7.999988 bits > Chi-Square: 287.206482(8.084906%) > Mean: 127.481261 > PI: 3.142029(0.013892%) > Correlation: 0.000098 > Sample looks good! > > Weird, and perhaps I'll stop running tests for haveged in future > builds. Or perhaps I'll just stop building it, to see if still > needed. > > Just thought I'd mention this as another example of "should I > believe a testsuite ?" ;-) > > ĸen If you have a hardware for the random generation use rngd from debian. I have been using it for all my arm builds ( I don't do x86 or AMD64 anymore ) as the raspberry pi platform has the hardware. It is interesting that the x86 and AMD64 platform generally does not include the hardware. You can buy a raspberry pi 4 4GB for less than $50.00USD. -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page