re-implement stathasher for hashring