Skip to content

Commit

Permalink
codec: test: use Intn(2) so we get 0 or 1
Browse files Browse the repository at this point in the history
Fixes #402
  • Loading branch information
ugorji committed Nov 28, 2023
1 parent 3a08a64 commit 879e7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codec/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2532,7 +2532,7 @@ func doTestLargeContainerLen(t *testing.T, h Handle) {

func testRandomFillRV(v reflect.Value) {
fneg := func() int64 {
i := rand.Intn(1)
i := rand.Intn(2)
if i == 1 {
return 1
}
Expand Down

0 comments on commit 879e7ea

Please sign in to comment.