Skip to content

Commit

Permalink
Use base36 for the RSC query (#52204)
Browse files Browse the repository at this point in the history
By using a larger base we can have a shorter parameter with almost the same result space.
  • Loading branch information
shuding committed Jul 4, 2023
1 parent 3406e13 commit 220377e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/shared/lib/hash.ts
Expand Up @@ -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)
}

0 comments on commit 220377e

Please sign in to comment.