From 15147490418eba1b073807bf5328cd55d6bee04f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 25 Jun 2023 01:33:02 +0900 Subject: [PATCH] examples/text: remove a dependency on math/rand --- examples/text/main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/text/main.go b/examples/text/main.go index 977d8a379..68505cae6 100644 --- a/examples/text/main.go +++ b/examples/text/main.go @@ -18,9 +18,7 @@ import ( "image/color" "log" "math" - "math/rand" "strings" - "time" "golang.org/x/image/font" "golang.org/x/image/font/opentype" @@ -70,10 +68,6 @@ func init() { } } -func init() { - rand.Seed(time.Now().UnixNano()) -} - type Game struct { counter int kanjiText []rune