[Ns-developers] ns-3.4 : Random Variables

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Wed Feb 18 22:36:52 PST 2009


On Wed, 2009-02-18 at 15:42 -0500, Raj Bhattacharjea wrote:

> I apologize for delaying the merge while I fiddled with understanding
> the issues, and for not addressing the list sooner.  The question I
> have which remains is: are we sure that the changes to the RNG output
> behavior that tree above introduces are consistent with the changes to
> the seeding behavior?  Or, are there some subtle bugs?  I can't shake

yes.

> the feeling that there is something fishy with the seeding behavior.
> For example:
> 
> SeedManager::SetSeed(seeds) exists, and calls
> RngStream::SetPackageSeed, which calls
> RngStream::EnsureGlobalInitialized, which might recursively call
> RngStream::SetPackageSeed with values read from the environment
> variables (and different from what I passed into SeedManager::SetSeed
> to begin with).  I am just plum puzzled by this behavior.

Well, then, just propose a different behavior and implementation. As far
as I am concerned, if you want to merge asap, removing
SeedManager::SetSeed altogether would be fine with me if it made you
more comfortable about the API behavior. Since this patch is on the
release critical path, this is what I would personally do as a RM.

> Also, should applying this changeset:
> http://code.nsnam.org/raj/ns-3-rng-changes/rev/debf1a8a96d3
> To the tip of ns-3-dev change the regression output?  Is it only for

yes.

> the users of GetSingleValue?

yes, it was the case when I looked at this.

regards,
Mathieu



More information about the Ns-developers mailing list