project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 11554 73e6a3d2f768
parent 11226 628ac6f8a41e
child 12872 00215a7ec5f5
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Tue Feb 16 11:31:55 2016 -0500
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Wed Feb 17 23:27:13 2016 +0100
@@ -45,9 +45,7 @@
         return;
 
     // generate a seed
-    CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);
-    NSString *seed = (NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuid);
-    CFRelease(uuid);
+    NSString *seed = [HWUtils seed];
     NSString *seedCmd = [[NSString alloc] initWithFormat:@"eseed {%@}", seed];
     self.seedCommand = seedCmd;
     [seedCmd release];