Hello ,
I am making some changes in DSR routing Protocol , i am sending(Broadcasting
) a customized DSR packet to their neighbor then neighbor starts the timeout
i want that time for every node should be random , i am trying but not
getting random for every node .
Any Suggestions please ....
up to that i am using this
void
DSRAgent::start_CDS_timer()
{
timeout.sched((0.40 + 0.20 +Random::integer(1600)
*(Random::integer(1600)
/100000000)));
}
but it's not working please help me .
--
View this message in context:
http://network-simulator-ns-2.7690.n7.nabble.com/ns-Adding-Random-Time-Out-tp26317.html
Sent from the ns-users mailing list archive at Nabble.com.