EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairRunIdGenerator.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairRunIdGenerator.h
1 #ifndef FAIRRUNIDGENERATOR_H
2 #define FAIRRUNIDGENERATOR_H
3 
4 
5 typedef unsigned char uint8_t;
6 typedef unsigned short int uint16_t;
7 typedef unsigned int uint32_t;
8 typedef unsigned char uuid_t[16];
9 
11 {
12  struct uuid {
18  };
19  int get_random_fd(void);
20  void get_random_bytes(void*, int);
21  int get_node_id(unsigned char*);
25  void uuid_generate(uuid_t);
26  void uuid_pack(const struct uuid*, uuid_t);
27  void uuid_unpack(const uuid_t, struct uuid*);
28  public:
31  unsigned int generateId(void);
32 };
33 
34 #endif