Any method that does not store passwords in plain text would be better.
I'm not sure what sort of modifications you have made to wordpress, but I can tell you that the default registration system hashes the passwords to store them securely. If you use that default system to generate the passwords, I would think that is safe.