commit | 236cde17582c4dc7d95117870c5be931bde2cd17 | [log] [tgz] |
---|---|---|
author | Mikio Hara <mikioh.mikioh@gmail.com> | Thu Oct 13 12:30:42 2016 +0900 |
committer | Mikio Hara <mikioh.mikioh@gmail.com> | Thu Oct 13 03:56:52 2016 +0000 |
tree | 55ad9d03a31c9bb53167df7195ea3633987a19ce | |
parent | c4e6936235d2393aaf806f097ed92eb88b40cba0 [diff] |
websocket: use of crypto/rand package in test The Read function of math/rand package doesn't exist on Go 1.5 or below. Change-Id: If837bbd0a862726be93e07b021701004ba0f0fad Reviewed-on: https://go-review.googlesource.com/30896 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/websocket/websocket_test.go b/websocket/websocket_test.go index 4cd674b..2054ce8 100644 --- a/websocket/websocket_test.go +++ b/websocket/websocket_test.go
@@ -6,10 +6,10 @@ import ( "bytes" + "crypto/rand" "fmt" "io" "log" - "math/rand" "net" "net/http" "net/http/httptest"