mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-09 09:22:48 +03:00
Fix deprecated rand.Seed
This commit is contained in:
@@ -191,7 +191,7 @@ func (gui *Gui) getRandomTip() string {
|
||||
),
|
||||
}
|
||||
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
randomIndex := rand.Intn(len(tips))
|
||||
rnd := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
randomIndex := rnd.Intn(len(tips))
|
||||
return tips[randomIndex]
|
||||
}
|
||||
|
Reference in New Issue
Block a user