[LTP] [PATCH] getrandom02: relax check for returned data
Cyril Hrubis
chrubis@suse.cz
Wed Feb 8 15:11:17 CET 2017
Hi!
> > Based on that (see attached python snippet) I'm getting that:
> > "x*0.1" is quite bad, specially for N=19
> > "6+x*0.2" is a lot better, with chance ~10^-16
>
> I'm getting the same with the fixed formula in gnuplot:
>
> plot [10:60] 256 * comb(x, int(6 + x * 0.2) + 1) / (256 ** (int(6 + x * 0.2) + 1))
>
> This shows a peak for 15 which is about ~10^-16.
^
should have been 14 of course
I was typing faster than thinking again...
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list