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:
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 {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue