From ae99c5ea6fbd9f051951d0f05d664ebf629f941c Mon Sep 17 00:00:00 2001 From: Robert Helmer Date: Wed, 15 Jan 2014 11:25:33 -0800 Subject: [PATCH] new randomString function should take len arg --- src/node/utils/randomstring.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/randomstring.js b/src/node/utils/randomstring.js index 4791f2745..788461576 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'); }); };