I encapsulated this as a class method DB.random_password since some other plugins needed it too