mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 08:33:43 -05:00
fix(std/mime): boundary random hex values (#6646)
This commit is contained in:
parent
e91594935a
commit
d4f9457536
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ export function isFormFile(x: any): x is FormFile {
|
||||||
function randomBoundary(): string {
|
function randomBoundary(): string {
|
||||||
let boundary = "--------------------------";
|
let boundary = "--------------------------";
|
||||||
for (let i = 0; i < 24; i++) {
|
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;
|
return boundary;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue