util/token: add docs

This commit is contained in:
Simon Ser 2023-10-06 16:10:29 +02:00 committed by Kirill Primak
parent 55be74ad86
commit 2410710a0f
1 changed files with 6 additions and 0 deletions

View File

@ -3,8 +3,14 @@
#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