diff options
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/utils/randomstring.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/utils/randomstring.js b/src/node/utils/randomstring.js index 4791f274..78846157 100644 --- a/src/node/utils/randomstring.js +++ b/src/node/utils/randomstring.js @@ -5,7 +5,7 @@ var crypto = require('crypto'); var randomString = function randomString(len) { - crypto.randomBytes(48, function(ex, buf) { + crypto.randomBytes(len, function(ex, buf) { return buf.toString('hex'); }); }; |