Consume parts of the entropy bits at a time.
- Make sure your GOPATH environment variable is set
- go get github.com/PhillipNordwall/gobitrand
- go install github.com/PhillipNordwall/gobitrand
- go test github.com/PhillipNordwall/gobitrand
- go test github.com/PhillipNordwall/gobitrand -bench=".*"
BenchmarkTwo_bits_speed 500000000 5.34 ns/op
BenchmarkRand_Intn_four 50000000 37.5 ns/op
- go test github.com/PhillipNordwall/gobitrand -bench="BenchmarkTwo_bits_speed" -cpuprofile $GOPATH/src/github.com/PhillipNordwall/gobitrand/Two_bit.cpu.out -o $GOPATH/src/github.com/PhillipNordwall/gobitrand.test
- go tool pprof $GOPATH/src/github.com/PhillipNordwall/gobitrand/gobitrand.test $GOPATH/src/github.com/PhillipNordwall/gobitrand/Two_bit.cpu.out
- top10
- top10 -cum
- web
- weblist Two_bit