[Ns-developers] Random Variables API changes

Raj Bhattacharjea raj.b at gatech.edu
Wed Jan 28 11:10:10 PST 2009


The RngStream::GetPackageSeed API is probably wrong, I just noticed.
It always returns the contents of nextSeed, which I believe gets
modified in the RngStream::MatVecModM method.

nextSeed is not necessarily the package seed.

nextSeed is a moving target, changing into, literally, the next seed
that the RngStream system will hand out to the next generator to be
created.  It looks like it gets a functional transformation applied to
it each time that IntializeStream is called.

I think that the RngStream::Ig member will always contain the
"initial" seed, hence the package seed.
-- 
Raj Bhattacharjea
Georgia Institute of Technology
School of Electrical and Computer Engineering
Ph.D. Candidate
Systems Analyst
404.894.2955


More information about the Ns-developers mailing list