From d4f9457536932c27937e5f7c6948cd6ef547ae25 Mon Sep 17 00:00:00 2001 From: Anton Dmytriichuk Date: Mon, 6 Jul 2020 01:23:59 +0300 Subject: [PATCH] fix(std/mime): boundary random hex values (#6646) --- std/mime/multipart.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/mime/multipart.ts b/std/mime/multipart.ts index 42be478953..0d60fd00b1 100644 --- a/std/mime/multipart.ts +++ b/std/mime/multipart.ts @@ -35,7 +35,7 @@ export function isFormFile(x: any): x is FormFile { function randomBoundary(): string { let boundary = "--------------------------"; for (let i = 0; i < 24; i++) { - boundary += Math.floor(Math.random() * 10).toString(16); + boundary += Math.floor(Math.random() * 16).toString(16); } return boundary; }