mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-04 12:57:45 +08:00
22 lines
403 B
C++
22 lines
403 B
C++
/*
|
|
* Copyright(C) 2021 hikyuu.org
|
|
*
|
|
* Create on: 2021-04-12
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <boost/uuid/uuid.hpp>
|
|
#include <boost/uuid/uuid_generators.hpp>
|
|
#include <boost/uuid/uuid_io.hpp>
|
|
|
|
namespace hku {
|
|
|
|
inline std::string UUID() {
|
|
static auto rgen = boost::uuids::random_generator();
|
|
return boost::uuids::to_string(rgen());
|
|
}
|
|
|
|
} // namespace hku
|