iOS 上基于时间的 UUID(版本 1)? [英] Time-based UUID (version 1) on iOS?
本文介绍了iOS 上基于时间的 UUID(版本 1)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何使用 iOS 创建 RFC 4122 投诉 UUID(版本 1,基于时间)?
How can we create a RFC 4122 complaint UUID (version 1, time-based) with iOS?
推荐答案
这里是 man page CFUUID
和 NSUUID
使用的底层库.它包含基于时间的创建函数:
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);
它也包含在 iOS 中.
It's contained in iOS as well.
这篇关于iOS 上基于时间的 UUID(版本 1)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文