Skip to content

Commit 9a5b61a

Browse files
committed
Removed depreciated functions
1 parent 0fffa94 commit 9a5b61a

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

cmd_password.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"flag"
55
"fmt"
66
"math/rand"
7-
"time"
87
)
98

109
// Structure for our options and state.
@@ -44,7 +43,6 @@ flags if necessary.`
4443

4544
// Execute is invoked if the user specifies `make-password` as the subcommand.
4645
func (p *passwordCommand) Execute(args []string) int {
47-
rand.Seed(time.Now().UnixNano())
4846

4947
// Alphabets we use for generation
5048
//

cmd_splay.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ natural usage you may specify as the first argument:
4949
// Execute is invoked if the user specifies `splay` as the subcommand.
5050
func (s *splayCommand) Execute(args []string) int {
5151

52-
// Ensure we seed our random number generator.
53-
rand.Seed(time.Now().UnixNano())
54-
5552
// If the user gave an argument then use it.
5653
//
5754
// Because people might expect this to work.

0 commit comments

Comments
 (0)