examples/text: remove a dependency on math/rand

This commit is contained in:
Hajime Hoshi 2023-06-25 01:33:02 +09:00
parent 1a9bff390d
commit 1514749041

View File

@ -18,9 +18,7 @@ import (
"image/color" "image/color"
"log" "log"
"math" "math"
"math/rand"
"strings" "strings"
"time"
"golang.org/x/image/font" "golang.org/x/image/font"
"golang.org/x/image/font/opentype" "golang.org/x/image/font/opentype"
@ -70,10 +68,6 @@ func init() {
} }
} }
func init() {
rand.Seed(time.Now().UnixNano())
}
type Game struct { type Game struct {
counter int counter int
kanjiText []rune kanjiText []rune