uuid_v4.h兼容X86和AArch64架构
This commit is contained in:
@@ -43,13 +43,18 @@ enum _log_action
|
||||
|
||||
#define get_time_ms(tv) ((long long)(tv.tv_sec) * 1000 + (long long)(tv.tv_usec) / 1000)
|
||||
|
||||
// #include "uuid_v4.h"
|
||||
// UUIDv4::UUIDGenerator<std::mt19937_64> uuidGenerator;
|
||||
|
||||
#ifdef __x86_64__
|
||||
#include "uuid_v4_x86.h"
|
||||
#else
|
||||
#include "uuid_v4_arm.h"
|
||||
#endif
|
||||
UUIDv4::UUIDGenerator<std::mt19937_64> uuidGenerator;
|
||||
|
||||
void get_http_body_uuid(char *uuid)
|
||||
{
|
||||
// UUIDv4::UUID uid = uuidGenerator.getUUID();
|
||||
// uid.str(uuid);
|
||||
UUIDv4::UUID uid = uuidGenerator.getUUID();
|
||||
uid.str(uuid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user