On Tuesday 27 November 2007 12:01:19 SVN commits to the Asterisk project wrote: > + long int rm = RAND_MAX; > res = res < 0 ? ~res : res; > - return res; > + rm++; > + return res % rm; Hum... Won't rm be zero on 32-bit platforms? Modulo zero isn't defined in C...