remove static char to only use char

This commit is contained in:
BONNAURE Olivier 2024-04-12 15:16:13 +02:00
parent eab6cabde0
commit d61c33d7b4

View file

@ -832,7 +832,7 @@ int LuaVisualizeControlCodes(lua_State *L) {
int LuaUuidV4(lua_State *L) {
char v[] = {'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
static char uuid_str[37] = {0};
char uuid_str[37] = {0};
uuid_str[0] = v[_rand64() % 16];
uuid_str[1] = v[_rand64() % 16];