From 65f78c556fe39971004406c6e3d84baf4fbe6da3 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Fri, 11 Apr 2025 23:52:14 +0400 Subject: [PATCH] Update files.ts --- backend/src/lib/files/files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/lib/files/files.ts b/backend/src/lib/files/files.ts index 0093c763e..063d71d09 100644 --- a/backend/src/lib/files/files.ts +++ b/backend/src/lib/files/files.ts @@ -6,7 +6,7 @@ import path from "path"; import { logger } from "@app/lib/logger"; const baseDir = path.join(os.tmpdir(), "infisical"); -const randomPath = () => `${crypto.randomBytes(64).toString("hex")}`; +const randomPath = () => `${crypto.randomBytes(32).toString("hex")}`; export const createTemporaryDirectory = async (name: string) => { const tempDirPath = path.join(baseDir, `${name}-${randomPath()}`);