project_files/HedgewarsMobile/Classes/HWUtils.m
changeset 11554 73e6a3d2f768
parent 11219 c51ecb9bcf05
child 12872 00215a7ec5f5
equal deleted inserted replaced
11553:5415e9d7436f 11554:73e6a3d2f768
   172     SDL_uikitview *view = data != NULL ? data->view : nil;
   172     SDL_uikitview *view = data != NULL ? data->view : nil;
   173     return view;
   173     return view;
   174 }
   174 }
   175 */
   175 */
   176 
   176 
       
   177 + (NSString *)seed
       
   178 {
       
   179     CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);
       
   180     NSString *seed = (NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuid);
       
   181     CFRelease(uuid);
       
   182     return seed;
       
   183 }
       
   184 
   177 @end
   185 @end