remove deprecated rand.Seed

This commit is contained in:
crgimenes
2023-09-09 11:03:32 -03:00
parent 094a5763ac
commit 8f8c901b24

View File

@@ -8,10 +8,8 @@ import (
"io/fs" "io/fs"
"log" "log"
"math" "math"
"math/rand"
"path/filepath" "path/filepath"
"strings" "strings"
"time"
"github.com/hajimehoshi/ebiten/v2" "github.com/hajimehoshi/ebiten/v2"
@@ -205,8 +203,6 @@ func main() {
width *= int(cfg.Scale) width *= int(cfg.Scale)
height *= int(cfg.Scale) height *= int(cfg.Scale)
rand.Seed(time.Now().UnixNano())
mSprite = make(map[string]*ebiten.Image) mSprite = make(map[string]*ebiten.Image)
a, _ := fs.ReadDir(f, "assets") a, _ := fs.ReadDir(f, "assets")