Skip to content

Commit

Permalink
chore: remove rand.Seed (deprecated, randomly seeded by default from …
Browse files Browse the repository at this point in the history
…go 1.20+)
  • Loading branch information
hacdias committed Aug 15, 2023
1 parent a8e97d1 commit 58eff8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/ipfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"errors"
"fmt"
"math/rand"
"net"
"net/http"
"os"
Expand Down Expand Up @@ -94,7 +93,6 @@ func newUUID(key string) logging.Metadata {
}

func mainRet() (exitCode int) {
rand.Seed(time.Now().UnixNano())
ctx := logging.ContextWithLoggable(context.Background(), newUUID("session"))

tp, err := tracing.NewTracerProvider(ctx)
Expand Down

0 comments on commit 58eff8b

Please sign in to comment.