From 2e003fe38578ff3b7938b1f84809319da24ed49c Mon Sep 17 00:00:00 2001 From: "P. Reis" <76563803+patrickReiis@users.noreply.github.com> Date: Sun, 15 Oct 2023 19:43:40 -0300 Subject: [PATCH] fix: rand.Seed is deprecated, change to New(NewSource(seed)) --- examples/games/life/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/games/life/main.go b/examples/games/life/main.go index 74cb410..cc84c50 100644 --- a/examples/games/life/main.go +++ b/examples/games/life/main.go @@ -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)