added random salt function to ShaMachine