You are right. PassHash::gen_salt can be used to generate the salt. Is there something else?