arp/glean: fix hash computation