diff options
author | Christopher Wedgwood <cw@f00f.org> | 2009-11-30 12:03:43 -0800 |
---|---|---|
committer | Christopher Wedgwood <cw@f00f.org> | 2009-11-30 12:03:43 -0800 |
commit | 908d65b6ab4b90e719ce0c16fb2ec5c71aceeb7b (patch) | |
tree | c92b1eaccf0c4e591c2fc0fc45ac3b7fa13000b2 /src/pkg/crypto/tls/handshake_client.go | |
parent | 00cdce0ef28d7d26fdf862575b74095e394883a8 (diff) | |
download | golang-908d65b6ab4b90e719ce0c16fb2ec5c71aceeb7b.tar.gz |
a[b:len(a)] -> a[b:]
R=r, rsc
CC=agl1
http://codereview.appspot.com/161070
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/crypto/tls/handshake_client.go')
-rw-r--r-- | src/pkg/crypto/tls/handshake_client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/crypto/tls/handshake_client.go b/src/pkg/crypto/tls/handshake_client.go index db9bb8cb3..1c6bd4b81 100644 --- a/src/pkg/crypto/tls/handshake_client.go +++ b/src/pkg/crypto/tls/handshake_client.go @@ -46,7 +46,7 @@ func (h *clientHandshake) loop(writeChan chan<- interface{}, controlChan chan<- hello.random[1] = byte(currentTime >> 16); hello.random[2] = byte(currentTime >> 8); hello.random[3] = byte(currentTime); - _, err := io.ReadFull(config.Rand, hello.random[4:len(hello.random)]); + _, err := io.ReadFull(config.Rand, hello.random[4:]); if err != nil { h.error(alertInternalError); return; @@ -132,7 +132,7 @@ func (h *clientHandshake) loop(writeChan chan<- interface{}, controlChan chan<- // version offered in the ClientHello. preMasterSecret[0] = defaultMajor; preMasterSecret[1] = defaultMinor; - _, err = io.ReadFull(config.Rand, preMasterSecret[2:len(preMasterSecret)]); + _, err = io.ReadFull(config.Rand, preMasterSecret[2:]); if err != nil { h.error(alertInternalError); return; |