Fix an issue with password_generate_salt