Fix secret generation