PokerUnicorn
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
uniqid.h
Go to the documentation of this file.
1/*
2 * PokerUnicorn Server
3 * This project uses test network, NO real coin or NO real money involved.
4 * Copyright (C) 2023, Oğuzhan Eroğlu <meowingcate@gmail.com> (https://meowingcat.io)
5 * Licensed under GPLv3 License
6 * See LICENSE for more info
7 */
8
9#pragma once
10
22#include <stdint.h>
23
24typedef struct {
25 uint64_t scalar;
26 char string[10];
28
32#define PKRSRV_UNIQID_STRING_LEN 20
33#define PKRSRV_UNIQID_STRING_SIZE 21
34
37void pkrsrv_uniqid_string_free(char* uniqid);
38
39static uint64_t pkrsrv_uniqid_uuid_i = 0;
40
uint64_t scalar
Definition uniqid.h:25
char * pkrsrv_uniqid_to_string(pkrsrv_uniqid_uuid_t uuid)
void pkrsrv_uniqid_string_free(char *uniqid)
pkrsrv_uniqid_uuid_t pkrsrv_uniqid_generate()
Definition uniqid.h:24