aboutsummaryrefslogtreecommitdiff
path: root/include/util/token.h
blob: 3aef69cfebbd4c603a3484336692d2214a43119a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef UTIL_TOKEN_H
#define UTIL_TOKEN_H

#include <stdbool.h>

/**
 * Number of bytes used by a token, including the terminating zero byte.
 */
#define TOKEN_SIZE 33

/**
 * Generate a random token string.
 */
bool generate_token(char out[static TOKEN_SIZE]);

#endif