This might be inlined into the  `set_random_password` method