Re: Randomness in NSClick
Lalith Suresh <[email protected]> Fri, 13 Jul 2012 11:11:18 +0200
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <CAOj7qWZdBW43uan7-ihHCQ7-6p1zAsxHJSce6VdGVWDE_2e88A@mail.gmail.com> |
Hi Sascha, On Mon, Jul 9, 2012 at 12:13 PM, Sascha Alexander Jopen <[email protected]> wrote: > Hey, > > Sometime ago i proposed a connection of the random number generators > provided by ns3 with the click_random() call, see > http://www.mail-archive.com/[email protected]/msg05657.html > > The attached patches implement a new simclick command to retrieve a > random number from the simulator. The first call of click_random checks > for support of the new command by the simulator. Until now there is no > fallback in case of lack of random number support by the simulator. This > is needed for ns2 functionality as long as this command is not > implemented in ns2. > > For now i use a single ns3::UniformVariable to draw random numbers from. > This corresponds to the old behaviour of click_random(). It is easily > possible to change this to one ns3::UniformVariable per click instance. > I have no clue, if this is statistically relevant. > > > click-ns3-rng.diff adds support on the click side, while > ns3-nsclick-rng.diff is for ns3 side. Both are diffs against current > git/mercurial tips. > > Maybe someone can test and comment on this? > I've tested your patch, it looks fine. I can push it to ns-3-dev when the click side gets committed. > Regards, > Sascha > > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > -- Lalith Suresh www.lalith.in