aboutsummaryrefslogtreecommitdiffstats
path: root/prog/mutation.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-03-05 12:08:00 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-03-05 12:10:27 +0100
commitbc09be42533e2ba62177abee2a56bfaea2fb85d3 (patch)
tree2fc7d9821af6318237f4b3a86aa92bd5d686014b /prog/mutation.go
parent42467f5b7bf4eef20f78f796fc6eb10401784d86 (diff)
prog: fix 32-bit build
Currently fails with: prog/mutation.go:442:24: constant 4294967296 overflows int
Diffstat (limited to 'prog/mutation.go')
-rw-r--r--prog/mutation.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/mutation.go b/prog/mutation.go
index 85a718a80..2e1039551 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