patch #6463 (IGMP - Adding Random Delay): added define LWIP_RAND() for lwip-wide randomization (to be defined in cc.h)

This commit is contained in:
goldsimon
2010-01-10 10:47:27 +00:00
parent aa7dd9a8ad
commit d85a18752f
3 changed files with 9 additions and 5 deletions

View File

@@ -641,10 +641,7 @@ igmp_timeout(struct igmp_group *group)
void
igmp_start_timer(struct igmp_group *group, u8_t max_time)
{
/**
* @todo Important !! this should be random 0 -> max_time. Find out how to do this
*/
group->timer = max_time;
group->timer = LWIP_RAND() % max_time;
}
/**