changeset 11554 | 73e6a3d2f768 |
parent 11219 | c51ecb9bcf05 |
child 12872 | 00215a7ec5f5 |
--- a/project_files/HedgewarsMobile/Classes/HWUtils.m Tue Feb 16 11:31:55 2016 -0500 +++ b/project_files/HedgewarsMobile/Classes/HWUtils.m Wed Feb 17 23:27:13 2016 +0100 @@ -174,4 +174,12 @@ } */ ++ (NSString *)seed +{ + CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault); + NSString *seed = (NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuid); + CFRelease(uuid); + return seed; +} + @end