Fix UUID generation and message for success in icon marketplace upload

This commit is contained in:
2025-08-24 21:55:53 -07:00
parent b80be97f18
commit a503506f3b
2 changed files with 9 additions and 5 deletions

View File

@@ -92,4 +92,11 @@ function getPostData() {
$decrypted[$decKey] = $decValue;
}
return $decrypted;
}
function uuidv4() {
$data = random_bytes(16);
$data[6] = chr((ord($data[6]) & 0x0f) | 0x40);
$data[8] = chr((ord($data[8]) & 0x3f) | 0x80);
return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
}