fix: rand.Seed is deprecated, change to New(NewSource(seed))

This commit is contained in:
P. Reis 2023-10-15 19:43:40 -03:00
parent e9da61431c
commit 2e003fe385

View file

@ -4,7 +4,7 @@ import (
"math/rand"
"time"
"github.com/gen2brain/raylib-go/raylib"
rl "github.com/gen2brain/raylib-go/raylib"
)
const (
@ -32,7 +32,7 @@ type Game struct {
}
func main() {
rand.Seed(time.Now().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))
game := Game{}
game.Init(false)