Skip to content

Commit

Permalink
Seed random number generator for client.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Mar 15, 2013
1 parent 42cc25d commit 12907cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/shadowsocks-local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"os"
"path"
"strconv"
"time"
)

var debug ss.DebugLog
Expand All @@ -31,6 +32,10 @@ const (
socksCmdConnect = 1
)

func init() {
rand.Seed(time.Now().Unix())
}

func handShake(conn net.Conn) (err error) {
const (
idVer = 0
Expand Down

0 comments on commit 12907cb

Please sign in to comment.