diff options
author | Robert Helmer <rhelmer@rhelmer.org> | 2014-01-15 11:25:33 -0800 |
---|---|---|
committer | Robert Helmer <rhelmer@rhelmer.org> | 2014-01-15 11:44:41 -0800 |
commit | ae99c5ea6fbd9f051951d0f05d664ebf629f941c (patch) | |
tree | 9bd890eab4e3ed5371b92dd88ad2179f92d71b27 | |
parent | 9ef709e7f7145ca4eece6b08f7d5f6fc937acd07 (diff) | |
download | etherpad-lite-ae99c5ea6fbd9f051951d0f05d664ebf629f941c.zip |
new randomString function should take len arg
-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'); }); }; |