We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352144e commit 89a0677Copy full SHA for 89a0677
src/random-id.ts
@@ -1,5 +1,5 @@
1
import { randomBytes } from 'node:crypto'
2
3
export function randomId(): string {
4
- return randomBytes(2).toString('hex')
+ return randomBytes(8).toString('base64url')
5
}
0 commit comments