[英]Algorithm to Create Unique User Id with Objective C
I am creating an online social app. 我正在创建一个在线社交应用程序。 I need a way to create a lot of random unique ID like userId, chatRoom Id things like that.
我需要一种创建大量随机唯一ID的方法,例如userId,chatRoom Id之类的东西。 Not only that, I want to make sure that this algorithm can be created with Java or C#.
不仅如此,我还想确保可以使用Java或C#创建此算法。 Should I use NSUUID?
我应该使用NSUUID吗? everytime you create a new NSUUID it will create a new unique string right?
每次创建新的NSUUID时,都会创建一个新的唯一字符串,对吗? Or is there any easy way I can create one using timeStamp?
还是有什么简单的方法可以使用timeStamp创建一个?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.