jaswdr / faker

:rocket: Ultimate fake data generator for Go with zero dependencies
https://pkg.go.dev/github.com/jaswdr/faker
MIT License
549 stars 59 forks source link

Handling edge case in IntBetween when using MaxInt #88

Closed jaswdr closed 2 years ago

jaswdr commented 2 years ago

Description

Fixing IntBetween by handling edge case where math.MaxInt is used as maximum value.

Are you trying to fix an existing issue?

85 and #87 seems to be related.

Go Version

$ go version
go version go1.17.6 linux/amd64

Go Tests

$ go test
PASS
ok      github.com/jaswdr/faker 0.937s