Skip to content

Commit c29a00b

Browse files
committed
Use random file name instead of GUID
1 parent fc636e4 commit c29a00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML.Core/Data/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ protected void GetPath(out string pathEnt, out string pathTemp, string dir, stri
256256
string root = Path.GetFullPath(DirTemp ?? @"x:\dummy");
257257
string entityPath = Path.Combine(root, dir ?? "", name);
258258
entityPath = Path.GetFullPath(entityPath);
259-
string tempPath = Path.Combine(root, Guid.NewGuid().ToString());
259+
string tempPath = Path.Combine(root, Path.GetRandomFileName());
260260
tempPath = Path.GetFullPath(tempPath);
261261

262262
string parent = Path.GetDirectoryName(entityPath);

0 commit comments

Comments
 (0)