Skip to content

Commit

Permalink
Update util.go
Browse files Browse the repository at this point in the history
  • Loading branch information
qjfoidnh committed Sep 19, 2023
1 parent d17e700 commit 0b5664a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pcscommand/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"math/rand"
"path"
"time"
)

const letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
Expand Down Expand Up @@ -73,6 +74,7 @@ func randReplaceStr(s string, rname bool) string {
if !rname {
return s
}
rand.Seed(time.Now().UnixNano())
filenameAll := path.Base(s)
fileSuffix := path.Ext(s)
filePrefix := filenameAll[0:len(filenameAll) - len(fileSuffix)]
Expand Down

0 comments on commit 0b5664a

Please sign in to comment.