create a random salt on hash generation (fixes #375)