[Click] Little element, random dropper...

Eddie Kohler kohler at cs.ucla.edu
Tue Jul 26 13:47:02 EDT 2005


Check out elements/test/randomseed.{cc,hh}.

If you think Click should use something other than random(), tell us  
why!

Eddie


On Jul 26, 2005, at 10:30 AM, Nicholas Weaver wrote:

> 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.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>



More information about the click mailing list