c++ - n-values UUID generator, reusable IDs -


I need a simple UUID generator. For this single example ID must be unique. Another requirement is that it is uniting and releasing at a time. I do not know the weather or does it fit the UUID concept. I thought of a heap with allrdy pop and push n-values ​​using, but this practice sounds bad memory intelligent.

It is not enough to use randomly-based UUIDs (except cryptographic), as there can be 2 mailing IDs, which can not be sweepet (though impractical opportunity) because it is a productive environment Is used in

The problem of creating unique ID over time Space and exclusivity can be divided into the form of specificity, to create a unique sequence globally.

UUID officially and specifically in the ISO 11578 standard are defined as part of other specifications, such as RFC 4122, ITU-T Rick. X.667 OSSP uuid () is an API for ISO C, ISO C ++, Perl and PHP, and a universally identifiable unique identifier (UUID) consistent with DCE 1.1, ISO / IEC 11578: 1996, and RFC 4122, this version 1 DCE 1.1 version of UI (based on time and node based), version 3 (named based, MD5), version 4 (random number based), and version 5 (named based, SHA-1) supports UUID. UUIDs are 128-bit numbers that are meant to keep a high probability of specificity in space and time and are computationally difficult to compute. They are the world-wide unique identifiers that can be generated locally without contacting the local registration authority. It is open source under the MIT / X Consortium license.

I have included some more clarifications

Check the RPC library on windows (see #include "Rpcdce.h") There are functions to generate UUID.


Comments

Popular posts from this blog

MySql variables and php -

c# - How can I find out if there are windows above a control? -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -