We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dc3cad commit 31e0784Copy full SHA for 31e0784
Assets/Tests/PlayMode/PlayerDataStorageManagerTests.cs
@@ -123,11 +123,7 @@ public IEnumerator UploadedFiles_CanBeQueried([ValueSource(nameof(ValueSource_Nu
123
{
124
// Generate a random name until we hit something that isn't already taken
125
// Having the same name would work as an overwrite
126
- string randomName = "";
127
- do
128
- {
129
- randomName = UnityEngine.Random.Range(0, 9999).ToString();
130
- } while (randomNames.Contains(randomName));
+ string randomName = Guid.NewGuid().ToString();
131
132
bool waitingForAdd = true;
133
Action doneWaiting = () => waitingForAdd = false;
0 commit comments