]> git.r.bdr.sh - rbdr/mobius/commitdiff
Replace deprecated rand.Seed usage
authorJeff Halter <redacted>
Thu, 20 Apr 2023 00:00:22 +0000 (17:00 -0700)
committerJeff Halter <redacted>
Thu, 20 Apr 2023 00:00:22 +0000 (17:00 -0700)
cmd/mobius-hotline-server/main.go

index 11e3baf4039f878960b06a71607797fa02d3c82c..4fa28c2a32e617aa2e01ad176fe20240765892ec 100644 (file)
@@ -12,12 +12,10 @@ import (
        "gopkg.in/natefinch/lumberjack.v2"
        "io"
        "log"
        "gopkg.in/natefinch/lumberjack.v2"
        "io"
        "log"
-       "math/rand"
        "net/http"
        "os"
        "path/filepath"
        "runtime"
        "net/http"
        "os"
        "path/filepath"
        "runtime"
-       "time"
 )
 
 //go:embed mobius/config
 )
 
 //go:embed mobius/config
@@ -28,8 +26,6 @@ const (
 )
 
 func main() {
 )
 
 func main() {
-       rand.Seed(time.Now().UnixNano())
-
        ctx, cancel := context.WithCancel(context.Background())
 
        // TODO: implement graceful shutdown by closing context
        ctx, cancel := context.WithCancel(context.Background())
 
        // TODO: implement graceful shutdown by closing context