Skip to content

Commit 00b7d4c

Browse files
authored
feat: use base64url random IDs (#1735)
1 parent 5ec6afa commit 00b7d4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)