remove deprecated rand.Seed
This commit is contained in:
4
main.go
4
main.go
@@ -8,10 +8,8 @@ import (
|
||||
"io/fs"
|
||||
"log"
|
||||
"math"
|
||||
"math/rand"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
|
||||
@@ -205,8 +203,6 @@ func main() {
|
||||
width *= int(cfg.Scale)
|
||||
height *= int(cfg.Scale)
|
||||
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
||||
mSprite = make(map[string]*ebiten.Image)
|
||||
|
||||
a, _ := fs.ReadDir(f, "assets")
|
||||
|
||||
Reference in New Issue
Block a user