(length)
| 51 | } |
| 52 | |
| 53 | function randomString(length) { |
| 54 | const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; |
| 55 | let result = ""; |
| 56 | for (let i = 0; i < length; i++) { |
| 57 | result += chars[Math.floor(Math.random() * chars.length)]; |
| 58 | } |
| 59 | return result; |
| 60 | } |
| 61 | |
| 62 | function md5Upper(text) { |
| 63 | return crypto.createHash("md5").update(text).digest("hex").toUpperCase(); |
no outgoing calls
no test coverage detected