Unit_AI/node_modules/form-data-encoder/lib/esm/util/createBoundary.js

11 lines
263 B
JavaScript
Raw Normal View History

2024-06-01 21:24:36 +01:00
const alphabet = "abcdefghijklmnopqrstuvwxyz0123456789";
function createBoundary() {
let size = 16;
let res = "";
while (size--) {
res += alphabet[(Math.random() * alphabet.length) << 0];
}
return res;
}
export default createBoundary;