aslze / asl

A compact C++ cross-platform library including JSON, XML, HTTP, Sockets, WebSockets, threads, processes, logs, file system, CSV, INI files, vectors and matrices, etc.
Other
69 stars 17 forks source link

UUID generator ASL helper class #1

Closed aitormoreno closed 6 years ago

aitormoreno commented 6 years ago

Boost provides a UUID generator method

It would be interesting to add a cross platform UUID generator to ASL too.

aslze commented 6 years ago

Added a simple UUID version 4 generator.

Uuid uuid = Uuid::generate();

that gets an Uuid in its raw binary representation. Usable as a key in a Map.

This convertis it to a String in the usual hex format:

String uuid = Uuid::generate();