[ns] Random Generator Problem
Lloyd Wood <L.Wood@eim.surrey.ac.uk>
Mon, 1 Oct 2001 17:30:47 +0100 (BST)
On Mon, 1 Oct 2001, Raffaele Bruno wrote:
> I have to do a lot of simulations with a not-deterministic
> behavior. I create an istance of the RNG class with
> RNG *rng_ = new RNG;
> but when I try to seed the RNG with:
> I receive the following error in the compile phase:
> 'HEURISTIC _SEED_SOURCE' undecleared (first use of this function)
> However I included the header "rng.h". Furthermore, if I eliminate
> the set_seed function from my program it works correctly and I can
> use the other method of the class RNG (for example, I generate
> exponentially distributed random numbers) but in this way I obtain
> a deterministic behavior for all my nodes.
> What I am doing wrong?
As you'll see from a grep of the code:
so I'd expect
to work. Class hierarchies - love 'em.