[Click] Little element, random dropper...
Nicholas Weaver
nweaver at ICSI.Berkeley.EDU
Tue Jul 26 13:30:36 EDT 2005
On Tue, Jul 26, 2005 at 12:25:35PM -0500, rchertov at purdue.edu composed:
> Quoting Nicholas Weaver <nweaver at icsi.berkeley.edu>:
>
> >
> > For testing, I hacked up a simple little packet-dropper
> > (sysadmin is having some problems, and needs a debugging tool to
> > increase loss in a link). It uses a 32 bit pRNG (RC5/3 round/32 bit)
> > to decide whether to randomly drop a packet.
>
> I believe RandomSample element does something similar, although I haven't
> checked what RNG it uses.
Ah. It uses random(). RC5 is slower, but I include seeding.
GAH, I'm so @#)(*@# blind.
--
Nicholas C. Weaver nweaver at icsi.berkeley.edu
This message has been ROT-13 encrypted twice for higher security.
More information about the click
mailing list