Skip to content

Commit

Permalink
Fix the Underscore build of _.random.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Mar 13, 2014
1 parent cd92815 commit f5bac6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/lodash.underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -4961,12 +4961,12 @@
if (min == null && max == null) {
max = 1;
}
min |= 0;
min = +min || 0;
if (max == null) {
max = min;
min = 0;
} else {
max |= 0;
max = +max || 0;
}
return min + floor(nativeRandom() * (max - min + 1));
}
Expand Down
2 changes: 1 addition & 1 deletion dist/lodash.underscore.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5bac6e

Please sign in to comment.