Skip to content

Commit

Permalink
set random seed
Browse files Browse the repository at this point in the history
  • Loading branch information
KappaDistributive committed Dec 6, 2024
1 parent 47ea8f7 commit eebb48f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v1/selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"math/rand"
"os"
"strings"
"time"

ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
Expand Down Expand Up @@ -50,6 +51,7 @@ func (selection Selection) Render() {
}

func createSelection(cursorPos int) Selection {
rand.Seed(time.Now().UnixNano())
home, err := os.UserHomeDir()
if err != nil {
errorHandling(err)
Expand Down

0 comments on commit eebb48f

Please sign in to comment.