added advertised address handling to random addresses