(length)
| 739 | } |
| 740 | |
| 741 | randomNum(length) { |
| 742 | length = length || 32; |
| 743 | let t = "0123456789", a = t.length, n = ''; |
| 744 | for (let i = 0; i < length; i++) { |
| 745 | n += t.charAt(Math.floor(Math.random() * a)); |
| 746 | } |
| 747 | return n |
| 748 | } |
| 749 | |
| 750 | randomString(e) { |
| 751 | return this.uuid() |