emulates the useful yet mythical "hash randomizer"