Permalink
Browse files

as in readme.md len not length in generateStrings

  • Loading branch information...
1 parent 009f461 commit 623a5ec590c1de4807e60eb75fd7c071f7fdaf7d baslr committed Oct 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 main.js
View
@@ -119,7 +119,7 @@ exports.generateStrings = function(callback,options,errorCallback){
var defaults = {
secure: false,
num: 1,
- length: 10,
+ len: 10,
digits: true,
upper: true,
lower: true,
@@ -154,7 +154,7 @@ exports.generateStrings = function(callback,options,errorCallback){
host: "www.random.org",
port: opts.secure?443:80,
method: "GET",
- path: "/strings/?format=plain&num="+opts.num+"&len="+opts.length+"&digits="+(opts.digits?"on":"off")+"&upperalpha="+(opts.upper?"on":"off")+"&loweralpha="+(opts.lower?"on":"off")+"&unique="+(opts.unique?"on":"off")+"&rnd="+opts.rnd,
+ path: "/strings/?format=plain&num="+opts.num+"&len="+opts.len+"&digits="+(opts.digits?"on":"off")+"&upperalpha="+(opts.upper?"on":"off")+"&loweralpha="+(opts.lower?"on":"off")+"&unique="+(opts.unique?"on":"off")+"&rnd="+opts.rnd,
headers: {
"User-Agent": "Random.org client for Node.js by Rodger Combs <rodger.combs@gmail.com>, version "+VERSION
}

0 comments on commit 623a5ec

Please sign in to comment.