We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7cec331 + bd9ffd0 commit 143beccCopy full SHA for 143becc
lib/util.js
@@ -76,26 +76,6 @@ class Util {
76
return '0x' + arr1.join('');
77
}
78
79
- /**
80
- * Generate random passphrase
81
- *
82
- * @param {Integer} length
83
84
- * @returns {String}
85
- */
86
- generatePassphrase(length) {
87
- length = length || 30;
88
-
89
- let charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@%*#^*',
90
- retVal = '';
91
92
- for (let i = 0, n = charset.length; i < length; ++i) {
93
- retVal += charset.charAt(Math.floor(Math.random() * n));
94
- }
95
96
- return retVal;
97
98
99
/**
100
* Adds leading zeroes
101
*
0 commit comments