Will Path.GetRandomFileName
generate a unique filename every single time? Also, what about Path.GetTempFileName
- will that generate a unique name?
The short answer is yes in both cases.
In reality get it will generate 11 random chars that means there are (26 +10)^11 possible names (1.316217e+17) so chances of creating the same name twice are none existand for all practical purposes.
For more information I suggest you read this
in fact there are only 32^11 possible names because
GetRandomFileName()
uses base 32 instead of base 36