Lolly 1.4.28
Loading...
Searching...
No Matches
uuid.cpp
Go to the documentation of this file.
1
2/******************************************************************************
3 * MODULE : uuid.cpp
4 * DESCRIPTION: UUID generation
5 * COPYRIGHT : (C) 2023 Darcy Shen
6 *******************************************************************************
7 * This software falls under the GNU general public license version 3 or later.
8 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10 ******************************************************************************/
11
12#include "uuid.hpp"
13#include "basic.hpp"
14
15#include <tbox/tbox.h>
16
17namespace lolly {
18namespace hash {
19string
21 tb_char_t uuid[37];
23 if (ret == NULL) {
24 TM_FAILED ("Failed to generate UUID");
25 }
26 return string (ret);
27}
28} // namespace hash
29} // namespace lolly
int hash(pointer ptr)
Computes a hash value for a pointer.
Definition basic.cpp:17
#define TM_FAILED(msg)
Macro used to throw an exception with a specified error message.
Definition basic.hpp:93
The list class represents a linked list.
Definition list.hpp:48
string uuid_make()
Definition uuid.cpp:20