Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx_utils_t_uuid.h
Go to the documentation of this file.
1#ifndef SAFEHERON_SGX_TRUSTED_UUID_H
2#define SAFEHERON_SGX_TRUSTED_UUID_H
3
4#include <mutex>
5#include <string>
6
7namespace ssgx {
8namespace utils_t {
9
18 public:
25 UUIDGenerator() = default;
37 std::string NewUUID4();
38
39 private:
40 static std::mutex mutex_;
41};
42
43} // namespace utils_t
44} // namespace ssgx
45
46#endif // SAFEHERON_SGX_TRUSTED_UUID_H
A thread-safe UUID Generator that generates only UUID V4 (random-based).
Definition ssgx_utils_t_uuid.h:17
UUIDGenerator()=default
Default constructor for the UUIDGenerator class.
std::string NewUUID4()
Generates a new UUID V4 (random-based).
Definition ssgx_attestation_t.h:6