Skip to content

Commit

Permalink
websocket: use of crypto/rand package in test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cixtor committed Oct 13, 2016
1 parent c4e6936 commit 236cde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket/websocket_test.go
Expand Up @@ -6,10 +6,10 @@ package websocket

import (
"bytes"
"crypto/rand"
"fmt"
"io"
"log"
"math/rand"
"net"
"net/http"
"net/http/httptest"
Expand Down

0 comments on commit 236cde1

Please sign in to comment.