for coded
diff --git a/src/utils/temp/generateFileName.ts b/src/utils/temp/generateFileName.ts
new file mode 100644
index 0000000..98240a1
--- /dev/null
+++ b/src/utils/temp/generateFileName.ts
@@ -0,0 +1,11 @@
+import * as fs from 'fs';
+import * as crypto from 'crypto';
+
+export default function generateFileName(ending: string): string {
+    let fileName = crypto.randomBytes(35).toString('hex');
+    fileName = fileName.replace(/([a-zA-Z0-9]{8})/g, '$1-');
+    if (fs.existsSync(`./${fileName}`)) {
+        fileName = generateFileName(ending);
+    }
+    return fileName + '.' + ending;
+}
\ No newline at end of file