diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 47945f05d..577a44ffe 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -156,7 +156,7 @@ }, { "ImportPath": "github.com/jbenet/go-random", - "Rev": "2e83344e7dc7898f94501665af34edd4aa95a013" + "Rev": "c50d0ce235bacde481d3e885b5dfd562c75c981a" }, { "ImportPath": "github.com/jbenet/go-temp-err-catcher", diff --git a/Godeps/_workspace/src/github.com/jbenet/go-random/.travis.yml b/Godeps/_workspace/src/github.com/jbenet/go-random/.travis.yml new file mode 100644 index 000000000..8b27568bb --- /dev/null +++ b/Godeps/_workspace/src/github.com/jbenet/go-random/.travis.yml @@ -0,0 +1,11 @@ +language: go + +go: + - 1.3 + - release + - tip + +script: + - go test ./... + +env: TEST_VERBOSE=1 diff --git a/Godeps/_workspace/src/github.com/jbenet/go-random/random/random.go b/Godeps/_workspace/src/github.com/jbenet/go-random/random/random.go index 0222c59d3..237b182c5 100644 --- a/Godeps/_workspace/src/github.com/jbenet/go-random/random/random.go +++ b/Godeps/_workspace/src/github.com/jbenet/go-random/random/random.go @@ -5,6 +5,7 @@ import ( "os" "strconv" + "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/dustin/go-humanize" random "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-random" ) @@ -14,10 +15,11 @@ func main() { usageError() } - count, err := strconv.ParseInt(os.Args[1], 10, 64) + countuint64, err := humanize.ParseBytes(os.Args[1]) if err != nil { usageError() } + count := int64(countuint64) if l == 2 { err = random.WriteRandomBytes(count, os.Stdout)