A generator for unique ids.
More...
#include <OpenMS/CONCEPT/UniqueIdGenerator.h>
List of all members.
Detailed Description
A generator for unique ids.
The unique ids are 64-bit random unsigned random integers. The class is implemented as a singleton. The random generator is initialized upon startup using the current system time and date. Collisions are not excluded by design, but extremely unlikely. (To estimate the probability of collisions, note that
, so it is unlikely you will see one in your lifetime.)
Constructor & Destructor Documentation
Member Function Documentation
| static Param const& getInfo |
( |
|
) |
[static] |
Returns a summary of internal status.
| static UInt64 getUniqueId |
( |
|
) |
[static] |
| void init_ |
( |
const DateTime & |
date_time |
) |
[private] |
| static void setSeed |
( |
const DateTime & |
|
) |
[static] |
Initializes random generator using the given DateTime instead of DateTime::now(). This is intended for debugging and testing.
Member Data Documentation