1717 */
1818package org .jackhuang .hmcl .setting ;
1919
20+ import com .github .f4b6a3 .uuid .alt .GUID ;
2021import com .google .gson .*;
2122import com .google .gson .annotations .JsonAdapter ;
2223import javafx .application .Platform ;
3536import org .jackhuang .hmcl .game .HMCLGameRepository ;
3637import org .jackhuang .hmcl .game .Version ;
3738import org .jackhuang .hmcl .ui .WeakListenerHolder ;
38- import org .jackhuang .hmcl .util .GUID ;
3939import org .jackhuang .hmcl .util .PortablePath ;
4040import org .jackhuang .hmcl .util .ToStringBuilder ;
4141import org .jackhuang .hmcl .util .javafx .ObservableHelper ;
@@ -61,7 +61,7 @@ public final class Profile implements Observable {
6161 private final HMCLGameRepository repository ;
6262
6363 /// The stable profile ID.
64- private final ObjectProperty <GUID > id = new SimpleObjectProperty <>(this , "id" , GUID .random ());
64+ private final ObjectProperty <GUID > id = new SimpleObjectProperty <>(this , "id" , GUID .v4 ());
6565
6666 /// Returns the stable profile ID property.
6767 public ObjectProperty <GUID > idProperty () {
@@ -130,7 +130,7 @@ public Profile(String name, Path initialGameDir) {
130130
131131 /// Creates a profile.
132132 public Profile (String name , PortablePath path ) {
133- this (GUID .random (), name , path , null );
133+ this (GUID .v4 (), name , path , null );
134134 }
135135
136136 /// Creates a profile with an explicit stable ID.
0 commit comments