From 89a0677d4c0968e21b9ce0be78799519b8cf547b Mon Sep 17 00:00:00 2001 From: typicode Date: Fri, 20 Mar 2026 13:23:59 +0100 Subject: [PATCH] feat: use base64url random IDs --- src/random-id.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/random-id.ts b/src/random-id.ts index 1e1112436..e457aa031 100644 --- a/src/random-id.ts +++ b/src/random-id.ts @@ -1,5 +1,5 @@ import { randomBytes } from 'node:crypto' export function randomId(): string { - return randomBytes(2).toString('hex') + return randomBytes(8).toString('base64url') }