Skip to content

Commit

Permalink
fix SA1019: rand.Seed has been deprecated since Go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
betorvs committed Feb 25, 2024
1 parent a7a749a commit 6938d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/roll/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func main() {
rand.Seed(time.Now().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))

rollDesc := strings.Join(os.Args[1:], " ")
res, reason, err := dice.Roll(rollDesc)
Expand Down

0 comments on commit 6938d4f

Please sign in to comment.