All of lore.kernel.org
 help / color / mirror / Atom feed
* changed "random" patch for higher precision
@ 2006-04-30  4:00 George P Nychis
  2006-05-02  4:35 ` Vincent
  2006-05-02 13:56 ` Patrick McHardy
  0 siblings, 2 replies; 4+ messages in thread
From: George P Nychis @ 2006-04-30  4:00 UTC (permalink / raw)
  To: netfilter-devel

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?

Thanks!
George

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-02 16:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-05-02 16:05   ` changed 'random' " George P Nychis

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.