vendredi 29 octobre 2021

c++ create a global unique id that is not a UUID type

In other languages, such as Go, there are a myriad of libraries that can be used to create a globally unique ID string (using elements such as nanosecond time, machine id, process id, random bytes...)

However, in C++, the only real choice seems to be UUID (such as that from Boost)

I am looking to use a globally unique identifier in my code, but do not want something with as many chars as a UUID.

As an example of the type of things available in GoLang. Please see the below. Anything similiar in c++?

https://blog.kowalczyk.info/article/JyRZ/generating-good-unique-ids-in-go.html

Aucun commentaire:

Enregistrer un commentaire