diff options
| author | Phil Greenberg <[email protected]> | 2015-06-10 22:49:12 -0700 |
|---|---|---|
| committer | Phil Greenberg <[email protected]> | 2015-06-10 22:49:12 -0700 |
| commit | cb82376c37716f765aee2a856567a02d1d1233ff (patch) | |
| tree | 8c63227c9b7e7454385929b78864a09d7c7f64cd /lib | |
| parent | 7f79b9f26ce0be14dafb0525ca258f3d958c4251 (diff) | |
| download | faker-cb82376c37716f765aee2a856567a02d1d1233ff.tar.xz faker-cb82376c37716f765aee2a856567a02d1d1233ff.zip | |
Fixing bug in random.number when max = 0
Also added tests for random.array_element
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/random.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/random.js b/lib/random.js index 3205d8c4..0fc33451 100644 --- a/lib/random.js +++ b/lib/random.js @@ -26,7 +26,7 @@ var random = { // Make the range inclusive of the max value var max = options.max; - if (max > 0) { + if (max >= 0) { max += options.precision; } |
