Skip to content

Commit 89a0677

Browse files
committed
feat: use base64url random IDs
1 parent 352144e commit 89a0677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/random-id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { randomBytes } from 'node:crypto'
22

33
export function randomId(): string {
4-
return randomBytes(2).toString('hex')
4+
return randomBytes(8).toString('base64url')
55
}

0 commit comments

Comments
 (0)