Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Apr 15, 2016
1 parent a847bea commit ec3a5ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## Install

```
$ npm install random-bool --save
$ npm install --save random-bool
```


Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

function fixSeed(seed) {

seed = parseInt(seed, 10);
if (typeof seed !== 'number') {
seed = parseInt(seed, 10);
}

return isNaN(seed) || !isFinite(seed) ? 1 : seed;
}
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,15 @@
"generate",
"gen",
"random",
"randomly",
"randomize",
"rand",
"bool",
"boolean",
"int",
"integer",
"num",
"number",
"max",
"min",
"math",
"natural",
"number"
"math"
],
"author": {
"name": "bubkoo",
Expand Down
2 changes: 2 additions & 0 deletions test/spec/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var char = require('chai');
var expect = char.expect;

Expand Down

0 comments on commit ec3a5ba

Please sign in to comment.