Skip to content
Snippets Groups Projects
Commit 49bf53cc authored by Dmitry Gerasimov's avatar Dmitry Gerasimov
Browse files

[+] GUUID

parent 759d14c0
No related branches found
No related tags found
1 merge request!897hotfix-6925
/*
* Authors:
* Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net>
* DeM Labs Ltd. https://demlabs.net
* Copyright (c) 2021
* All rights reserved.
This file is part of DAP SDK the open source project
DAP SDK is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DAP SDK is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with any DAP SDK based project. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "dap_uuid.h"
typedef uint128_t dap_guuid_t;
static inline dap_guuid_t dap_guuid_new()
{
return (dap_guuid_t) dap_uuid_generate_uint128();
}
......@@ -24,7 +24,7 @@
#pragma once
#include "dap_math_ops.h"
uint128_t dap_uuid_generate_uint128(); // Produce uint128 unique id
uint64_t dap_uuid_generate_uint64(); // Produce uint64 unique id
uint128_t dap_uuid_generate_uint128(); // Produce uint128 global unique id
uint64_t dap_uuid_generate_uint64(); // Produce uint64 global unique id
// Produces unique nonce
void dap_uuid_generate_nonce(void *a_nonce, size_t a_nonce_size);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment