LWIP_RAND() return type is int, value returned is sometimes negative. This causes timer to sometimes (often) go outside of max_time, which in turn causes IGMP snoopers or IGMP routers to drop the subscription