go.crypto/ssh: fix messages_test.go on 32-bit platforms.

LGTM=dave
R=agl, dave
CC=golang-codereviews
https://golang.org/cl/88060043
This commit is contained in:
Han-Wen Nienhuys
2014-04-15 09:09:03 -07:00
committed by Adam Langley
parent e1b0d6c49f
commit dac81c328b
+1 -1
View File
@@ -51,7 +51,7 @@ func (t *msgAllTypes) Generate(rand *rand.Rand, size int) reflect.Value {
m.Bool = rand.Intn(2) == 1
randomBytes(m.Array[:], rand)
m.Uint64 = uint64(rand.Int63n(1<<63 - 1))
m.Uint32 = uint32(rand.Intn(1 << 32))
m.Uint32 = uint32(rand.Intn((1 << 31) - 1))
m.Uint8 = uint8(rand.Intn(1 << 8))
m.String = string(m.Array[:])
m.Strings = randomNameList(rand)