|
@@ -1,18 +0,0 @@
|
|
|
-function makeid(n) {
|
|
|
- var text = "";
|
|
|
- var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
|
- const d = new Date()
|
|
|
-
|
|
|
- text += possible[d.getMilliseconds() % possible.length]
|
|
|
- text += possible[d.getSeconds()]
|
|
|
- text += possible[d.getMinutes()]
|
|
|
- text += possible[d.getDate()]
|
|
|
-
|
|
|
- for (var i = 0; i < n; i++)
|
|
|
- text += possible.charAt(Math.floor(Math.random() * possible.length));
|
|
|
-
|
|
|
- return text;
|
|
|
-}
|
|
|
-
|
|
|
-console.log(makeid(5))
|
|
|
-
|