util.generateRandomUUID 有没有C++版本的-鸿蒙开发者社区-51CTO.COM

util.generateRandomUUID 有没有C++版本的

util.generateRandomUUID 有没有C++版本的

HarmonyOS
2024-05-10 21:40:56
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
克里斯蒂东

可以参考开源实现:

uuid_v4

This is a fast C++ header-only library to generate, serialize, print and parse UUIDs version 4 variant 1 as specified in RFC-4122. It heavily relies on SIMD operations (instruction sets SSE4.1/AVX/AVX2), c11 PRNG library and some c17 features.

This library generates UUIDs with pseudo-random numbers, seeded by true (hardware) random. It is not a cryptographically secure way of generating UUIDs.

While this lib is optimized to be fast with SIMD operations, it is possible to run it on any architecture with portable implementations of SIMD instructions like simd-everywhere

参考链接:https://github.com/crashoz/uuid_v4

分享
微博
QQ
微信
回复
2024-05-11 11:09:44
相关问题
HarmonyOS util.generateRandomUUID()疑问
358浏览 • 1回复 待解决
util.generateRandomUUID是什么作用
2209浏览 • 1回复 待解决
如何修改C++版本C++支持情况?
1542浏览 • 1回复 待解决
util.generateRandomUUID()
383浏览 • 1回复 待解决
鸿蒙UI框架没有 C++ UI框架
14116浏览 • 2回复 待解决
HarmonyOS 工程里ndk怎么指定c++版本
1189浏览 • 1回复 待解决
HarmonyOS arkguard有没有开源版本
328浏览 • 1回复 待解决
HarmonyOS应用开发 没有 C++ UI 框架
14699浏览 • 2回复 待解决
HarmonyOS ArkTS与C/C++交互
1231浏览 • 1回复 待解决
如何在C/C++ 创建ArkTS对象
2867浏览 • 1回复 待解决
如何实现ArkTS与C/C++数组转换
1236浏览 • 1回复 待解决