0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

fix(std/mime): boundary random hex values (#6646)

This commit is contained in:
Anton Dmytriichuk 2020-07-06 01:23:59 +03:00 committed by GitHub
parent e91594935a
commit d4f9457536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}