Skip to content

Commit

Permalink
Added random seed.
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanHabic committed Nov 8, 2018
1 parent 4cdfcae commit c6e0ec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions versionCheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"math/rand"
"net/http"
"sort"
"time"
)

type commit struct {
Expand All @@ -25,6 +26,7 @@ type tagResults struct {
}

func MaybeCheckVersion() {
rand.Seed(time.Now().UnixNano())
randInt := rand.Intn(25)

if randInt != 24 {
Expand Down

0 comments on commit c6e0ec3

Please sign in to comment.