@@ -177,7 +177,7 @@ func New(ctx context.Context, options option.Options) (*Box, error) {
outbounds: outbounds,
createdAt: createdAt,
logFactory: logFactory,
- logger: logFactory.NewLogger(""),
+ logger: logFactory.Logger(),
logFile: logFile,
clashServer: clashServer,
v2rayServer: v2rayServer,
@@ -9,10 +9,11 @@ import (
"time"
B "github.com/sagernet/sing/common/buf"
+ "github.com/sagernet/sing/common/random"
)
func init() {
- rand.Seed(time.Now().Unix())
+ random.InitializeSeed()
}
const (