Restored salt() function