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 Mar 9, 2023
1 parent 9567003 commit c314a70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 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))
}
2 changes: 0 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,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 c314a70

Please sign in to comment.