improved hash to use guava

Change-Id: Idcf0cb8ee0198121cd14719b8d1a8f200d20eba3