Skip to content

Commit

Permalink
Refactor randomString to randomFileName
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Oct 1, 2022
1 parent 794db93 commit d582987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/command/exec/psexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func randomFileName() string {
prefix += string(alphanumeric[insecureRand.Intn(len(alphanumeric))])
}
suffix := ""
for index := 0; index < insecureRand.Intn(6); index++ {
for index := 0; index < insecureRand.Intn(6)+1; index++ {
suffix += string(alphanumeric[insecureRand.Intn(len(alphanumeric))])
}

Expand Down

0 comments on commit d582987

Please sign in to comment.