I need help with a depreciation warning related to make_random_password()

I’m building an app to manage credentials for medical providers. I want to create a user for each provider that gets entered into my app so that they can log in and see data related to their credentials. I wanted to use the make_random_password() method of the BaseUserManager to generate an initial password. But as I checked for warnings It gave me a depreciation warning for this method. Is there something new that I can use to generate this password or do I need to create something from scratch?

I was thinking I could just create some one-time code to a provider’s email so they can create their own password.

The Django 4.2 Release Notes identifies the preferred replacement