From 52441e3037a8ee1ad45f69044d9ef2041977b7eb Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Thu, 14 Dec 2023 23:38:08 +0300 Subject: [PATCH] follow the linter's commands --- modules/caddyhttp/caddyauth/basicauth.go | 3 --- modules/caddyhttp/fileserver/staticfiles.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/modules/caddyhttp/caddyauth/basicauth.go b/modules/caddyhttp/caddyauth/basicauth.go index c37065632..9e4832738 100644 --- a/modules/caddyhttp/caddyauth/basicauth.go +++ b/modules/caddyhttp/caddyauth/basicauth.go @@ -23,7 +23,6 @@ import ( "net/http" "strings" "sync" - "time" "golang.org/x/sync/singleflight" @@ -39,8 +38,6 @@ func init() { caddy.RegisterType("http.authentication.providers", []interface{}{ (*Authenticator)(nil), }) - - weakrand.Seed(time.Now().UnixNano()) } // HTTPBasicAuth facilitates HTTP basic authentication. diff --git a/modules/caddyhttp/fileserver/staticfiles.go b/modules/caddyhttp/fileserver/staticfiles.go index 2413f2242..f419f7c70 100644 --- a/modules/caddyhttp/fileserver/staticfiles.go +++ b/modules/caddyhttp/fileserver/staticfiles.go @@ -29,7 +29,6 @@ import ( "runtime" "strconv" "strings" - "time" "go.uber.org/zap" @@ -39,8 +38,6 @@ import ( ) func init() { - weakrand.Seed(time.Now().UnixNano()) - caddy.RegisterType("http.precompressed", []interface{}{ (*encode.Precompressed)(nil), })