From: Patrick McHardy <kaber@trash.net>
To: George P Nychis <gnychis@cmu.edu>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: changed "random" patch for higher precision
Date: Tue, 02 May 2006 15:56:31 +0200 [thread overview]
Message-ID: <4457650F.7030901@trash.net> (raw)
In-Reply-To: <33328.128.2.140.234.1146369657.squirrel@128.2.140.234>
George P Nychis wrote:
> Hi,
>
> I modified the "random" patch to support high precision averages ... the original random only supports 1-99% in integer intervals
>
> The original patch did this by having an 8 bit integer, reading random bytes from the kernel into an 8 bit integer, and testing between 2 and 252 (1*2.55 and 99*2.55 ... 2.55 coming from 255/100).
>
> Regardless of how the original patch worked, I use a 32 bit integer to support extremely high precision probabilities and changed the ranges to UINT_MAX instead of 255, plus other changes.
>
> I tested it pretty rigurously on the 2.4 kernel because i'm working on a project right now which required high precision drop probabilities
>
> My main question is, should i request changes to the random patch, or completely create a new patch and argument?
I already have a version of random with higher precision queued
for 2.6.18. You say you're using UINT_MAX .. can you represent a
probability of both 0 and 1? :)
next prev parent reply other threads:[~2006-05-02 13:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-30 4:00 changed "random" patch for higher precision George P Nychis
2006-05-02 4:35 ` Vincent
2006-05-02 13:56 ` Patrick McHardy [this message]
2006-05-02 16:05 ` changed 'random' " George P Nychis
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=4457650F.7030901@trash.net \
--to=kaber@trash.net \
--cc=gnychis@cmu.edu \
--cc=netfilter-devel@lists.netfilter.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.