Update dependencies
This commit is contained in:
1 parent
23013ef033
commit
ffab32fcff
7 files changed
+305
-86
No files matched your search
+1
-1
@@ -40,7 +40,7 @@ func (s jwtService) CreateApplication(appId int32, expTime int64) (string, error
|
||||
func (jwtService) getSalt() string {
|
||||
const randIntSize = 30
|
||||
const minLen = 10
|
||||
randomInt := mathRand.Intn(randIntSize)
|
||||
randomInt := mathRand.Intn(randIntSize) //nolint:gosec
|
||||
salt := make([]byte, randomInt+minLen)
|
||||
_, _ = rand.Read(salt)
|
||||
|
||||
|
||||
Reference in new issue
Block a user