Skip to content

Commit aad7e3e

Browse files
committed
Address deprecations
1 parent 0d7c0f7 commit aad7e3e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"fmt"
5-
"math/rand"
65
"os"
76
"strings"
87
"time"
@@ -229,10 +228,9 @@ func (m model) View() string {
229228
}
230229

231230
func main() {
232-
rand.Seed(time.Now().UnixNano())
233231
config, _ := LoadConfig()
234232
p := tea.NewProgram(initialModel(config.HighScore))
235-
if err := p.Start(); err != nil {
233+
if _, err := p.Run(); err != nil {
236234
fmt.Printf("Alas, there's been an error: %v", err)
237235
os.Exit(1)
238236
}

0 commit comments

Comments
 (0)