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"
"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