How to create a GUID/UUID using iOS
I want to be able to create a GUID/UUID on the iPhone and iPad. The intention is to be able to create keys for distributed data that are all unique. Is there a way to do this with the iOS SDK? 8 Answers 8
I want to be able to create a GUID/UUID on the iPhone and iPad. The intention is to be able to create keys for distributed data that are all unique. Is there a way to do this with the iOS SDK? 8 Answers 8
I’ve worked on a number of database systems in the past where moving entries between databases would have been made a lot easier if all the database keys had been GUID / UUID values. I’ve considered going down this path a few times, but there’s always a bit of uncertainty, especially around performance and un-read-out-over-the-phone-able … Read more
I’m testing out some WCF services that send objects with Guids back and forth. In my web app test code, I’m doing the following: var responseObject = proxy.CallService(new RequestObject { Data = “misc. data”, Guid = new Guid() }); For some reason, the call to new Guid() is generating Guids with all 0’s (zeros) like … Read more
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? 7 Answers 7
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more
How to check if variable contains valid UUID/GUID identifier? I’m currently interested only in validating types 1 and 4, but it should not be a limitation to your answers. 17 Answers 17
What’s the difference between Guid.NewGuid() and new Guid()? Which one is preferred? 4 Answers 4
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 months ago. The community reviewed whether to reopen this question 5 months ago and left it closed: Original close reason(s) were … Read more
What are some of the best ways to create a GUID in Java? 7 Answers 7
I want to create a varchar column in SQL that should contain N’guid’ while guid is a generated GUID by .NET (Guid.NewGuid) – class System.Guid. What is the length of the varchar I should expect from a GUID? Is it a static length? Should I use nvarchar (will GUID ever use Unicode characters)? varchar(Guid.Length) PS. … Read more