Time-based UUID (version 1) on iOS?

末鹿安然 提交于 2019-12-14 00:35:52

问题


How can we create a RFC 4122 complaint UUID (version 1, time-based) with iOS?


回答1:


Here's the man page of the underlying library used by CFUUID and NSUUID. It contains the time based creation function:

#include <uuid/uuid.h>

uuid_generate_time(uuid_t);

It's contained in iOS as well.



来源:https://stackoverflow.com/questions/15501914/time-based-uuid-version-1-on-ios

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!