Merge "_create_creds function shouldn't call rand_name twice"