/* Pick a random link local IP address on 169.254/16, except that the first and last 256 addresses are reserved.  */
static struct in_addr pick(void)
/* Pick a random link local IP address on 169.254/16, except that the first and last 256 addresses are reserved.  */
static struct in_addr pick(void)
{
	unsigned tmp;
	struct in_addr ip;
	do {
		tmp = rand_r(&seed) & IN_CLASSB_HOST;
	} while (tmp > (IN_CLASSB_HOST - 0x0200));
	ip.s_addr = htonl((LINKLOCAL_ADDR + 0x0100) + tmp);
	return ip;
}