From: Jeff Halter Date: Thu, 20 Apr 2023 00:00:22 +0000 (-0700) Subject: Replace deprecated rand.Seed usage X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/commitdiff_plain/e55ecb6c4a75d1d16b6785dbe9f75f9e22291a21?ds=inline;hp=-c Replace deprecated rand.Seed usage --- e55ecb6c4a75d1d16b6785dbe9f75f9e22291a21 diff --git a/cmd/mobius-hotline-server/main.go b/cmd/mobius-hotline-server/main.go index 11e3baf..4fa28c2 100644 --- a/cmd/mobius-hotline-server/main.go +++ b/cmd/mobius-hotline-server/main.go @@ -12,12 +12,10 @@ import ( "gopkg.in/natefinch/lumberjack.v2" "io" "log" - "math/rand" "net/http" "os" "path/filepath" "runtime" - "time" ) //go:embed mobius/config @@ -28,8 +26,6 @@ const ( ) func main() { - rand.Seed(time.Now().UnixNano()) - ctx, cancel := context.WithCancel(context.Background()) // TODO: implement graceful shutdown by closing context