Oredope, Adetola wrote:
> Thanks a lot for you help on this. I have been able to play around with
> the hash function in which I discovered it parameters had char
> properties which is quite small, thus causing repetition. I have change
> this to long and also used the system time as a seed to generate random
> numbers. Although there some errors while compling (of course!), it
> still worked. Please see below the revised code.
The outcome of hash functions, starting from the same input, should be
reproducible (http://en.wikipedia.org/wiki/Hash_function). I'm pretty
sure that using rand() will break quite a lot of things...
--
Ciao,
Enrico
|