From bc09be42533e2ba62177abee2a56bfaea2fb85d3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 5 Mar 2018 12:08:00 +0100 Subject: [PATCH] prog: fix 32-bit build Currently fails with: prog/mutation.go:442:24: constant 4294967296 overflows int --- prog/mutation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/mutation.go b/prog/mutation.go index 85a718a8..2e103955 100644 --- a/prog/mutation.go +++ b/prog/mutation.go @@ -439,7 +439,7 @@ loop: } i := r.Intn(len(data) - 3) p := (*uint32)(unsafe.Pointer(&data[i])) - *p = uint32(r.rand(1 << 32)) + *p = r.Uint32() case 3: // int64 if len(data) < 8 { retry = true