In my iOS Swift app I want to generate random UUID (GUID) strings for use as a table key, and this snippet appears to work:
let uuid = CFUUIDCreateString(nil, CFUUIDCreate(nil))
Is this safe?
Or is there perhaps a better (recommended) approach?
This question is related to
Try this one:
let uuid = NSUUID().uuidString print(uuid)
let uuid = UUID().uuidString print(uuid)