Use base36 for the RSC query (#52204)

By using a larger base we can have a shorter parameter with almost the same result space.
This commit is contained in:
Shu Ding 2023-07-04 18:27:48 +02:00 committed by GitHub
parent 3406e13ab0
commit 220377e381
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,5 +9,5 @@ export function djb2Hash(str: string) {
}
export function hexHash(str: string) {
return djb2Hash(str).toString(16).slice(0, 7)
return djb2Hash(str).toString(36).slice(0, 5)
}