Browse Source

revert random change (#3292)

pull/3271/head
fatedier 2 years ago committed by GitHub
parent
commit
113e3b0b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      client/service.go
  2. 5
      cmd/frps/main.go

3
client/service.go

@ -19,6 +19,7 @@ import (
"crypto/tls"
"fmt"
"io"
"math/rand"
"net"
"runtime"
"strconv"
@ -46,6 +47,8 @@ import (
func init() {
crypto.DefaultSalt = "frp"
// TODO: remove this when we drop support for go1.19
rand.Seed(time.Now().UnixNano())
}
// Service is a client service.

5
cmd/frps/main.go

@ -15,6 +15,9 @@
package main
import (
"math/rand"
"time"
"github.com/fatedier/golib/crypto"
_ "github.com/fatedier/frp/assets/frps"
@ -23,6 +26,8 @@ import (
func main() {
crypto.DefaultSalt = "frp"
// TODO: remove this when we drop support for go1.19
rand.Seed(time.Now().UnixNano())
Execute()
}

Loading…
Cancel
Save