diff options
| author | fengweihao <[email protected]> | 2024-11-18 11:34:52 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2024-11-18 11:34:52 +0800 |
| commit | bbf084acad01102befc1fdfe916bc7209da08c50 (patch) | |
| tree | 315b173b0f76b4b95d636db35a95256118693a77 /plugin/business/tsg-http/src | |
| parent | 2e69e0edd8d2574952fd5fe779f9604cb7ed6ead (diff) | |
uuid_v4.h兼容X86和AArch64架构
Diffstat (limited to 'plugin/business/tsg-http/src')
| -rw-r--r-- | plugin/business/tsg-http/src/tsg_logger.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugin/business/tsg-http/src/tsg_logger.cpp b/plugin/business/tsg-http/src/tsg_logger.cpp index 6a79ffb..a3b85cb 100644 --- a/plugin/business/tsg-http/src/tsg_logger.cpp +++ b/plugin/business/tsg-http/src/tsg_logger.cpp @@ -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; } |
