Skip to content

Commit

Permalink
Remove deprecated rand.Seed calls
Browse files Browse the repository at this point in the history
  • Loading branch information
randombenj committed May 31, 2023
1 parent 6259abf commit 44998a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package main

import (
"math/rand"
"os"
"time"

"github.com/aptly-dev/aptly/aptly"
"github.com/aptly-dev/aptly/cmd"
Expand All @@ -22,7 +20,5 @@ func main() {

aptly.Version = Version

rand.Seed(time.Now().UnixNano())

os.Exit(cmd.Run(cmd.RootCommand(), os.Args[1:], true))
}
3 changes: 0 additions & 3 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package main
import (
"flag"
"fmt"
"math/rand"
"os"
"strings"
"testing"
Expand Down Expand Up @@ -53,8 +52,6 @@ func TestRunMain(t *testing.T) {

aptly.Version = Version

rand.Seed(time.Now().UnixNano())

args := filterOutTestArgs(os.Args[1:])
root := cmd.RootCommand()
root.UsageLine = "aptly"
Expand Down

0 comments on commit 44998a2

Please sign in to comment.