Platform-independent GUID generation in C++?

后端 未结 6 1472
余生分开走
余生分开走 2020-12-02 10:27

What is the best way to programmatically generate a GUID or UUID in C++ without relying on a platform-specific tool? I am trying to make unique identifiers for objects in a

6条回答
  •  [愿得一人]
    2020-12-02 11:08

    Well one offbeat(?) solution would be to use a web service to get the GUID but I doubt this will be a good solution for a C++ program especially if it's not network enabled.

    Here is a URL which might come in handy if you choose to pursue this option: http://www.hoskinson.net/GuidGenerator/default.asp

提交回复
热议问题