From c6e0ec30fee07ff1d3b2fec9ca321047f9e976a9 Mon Sep 17 00:00:00 2001 From: Bogdan Habic Date: Thu, 8 Nov 2018 12:59:09 +0100 Subject: [PATCH] Added random seed. --- versionCheck.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/versionCheck.go b/versionCheck.go index b2ab43a..039ce15 100644 --- a/versionCheck.go +++ b/versionCheck.go @@ -9,6 +9,7 @@ import ( "math/rand" "net/http" "sort" + "time" ) type commit struct { @@ -25,6 +26,7 @@ type tagResults struct { } func MaybeCheckVersion() { + rand.Seed(time.Now().UnixNano()) randInt := rand.Intn(25) if randInt != 24 {