Skip to content

Commit 143becc

Browse files
Merge pull request #56 from ostdotcom/kedarchandrayan-patch-1
Update util.js
2 parents 7cec331 + bd9ffd0 commit 143becc

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lib/util.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,6 @@ class Util {
7676
return '0x' + arr1.join('');
7777
}
7878

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-
9979
/**
10080
* Adds leading zeroes
10181
*

0 commit comments

Comments
 (0)