mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 23:22:24 +00:00
17 lines
270 B
C
17 lines
270 B
C
#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
|