Skip to content

Commit

Permalink
chore: remove unneccessary rand setup post go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslak committed Jan 15, 2025
1 parent 4ab8e70 commit 58143ff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion receiver/linefile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func deleteFile(t *testing.T, file string) {

func lfMakeFile(t *testing.T) (string, error) {
t.Helper()
rand.Seed(int64(time.Now().Nanosecond()))
file := fmt.Sprintf("%s/skogul-linefiletest-%d-%d", os.TempDir(), os.Getpid(), rand.Int())

_, err := os.Stat(file)
Expand Down
2 changes: 0 additions & 2 deletions sender/complex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ var validContainer = skogul.Container{}
func init() {

now := time.Now()
rand.Seed(now.Unix())

m := skogul.Metric{}
m.Time = &now
m.Metadata = make(map[string]interface{})
Expand Down

0 comments on commit 58143ff

Please sign in to comment.