public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] getrandom02: relax check for returned data
Date: Wed, 8 Feb 2017 15:11:17 +0100	[thread overview]
Message-ID: <20170208141051.GD16139@rei.lan> (raw)
In-Reply-To: <20170208140855.GC16139@rei.lan>

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

      reply	other threads:[~2017-02-08 14:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-06 12:13 [LTP] [PATCH] getrandom02: relax check for returned data Jan Stancek
2017-02-07 15:33 ` Cyril Hrubis
2017-02-07 16:15   ` Jan Stancek
2017-02-07 17:30     ` Cyril Hrubis
2017-02-08 11:23       ` Jiri Jaburek
2017-02-08 13:32         ` Cyril Hrubis
2017-02-08 13:14       ` Jan Stancek
2017-02-08 14:08         ` Cyril Hrubis
2017-02-08 14:11           ` Cyril Hrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170208141051.GD16139@rei.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox