mirror of
https://github.com/minio/minio.git
synced 2025-11-23 11:07:50 -05:00
move credentials as separate package (#5115)
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
@@ -258,13 +257,5 @@ func (n *nsLockMap) deleteLockInfoEntryForOps(param nsParam, opsID string) error
|
||||
|
||||
// Return randomly generated string ID
|
||||
func getOpsID() string {
|
||||
const opsIDLen = 16
|
||||
opsIDBytes := make([]byte, opsIDLen)
|
||||
if _, err := rand.Read(opsIDBytes); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for i := 0; i < opsIDLen; i++ {
|
||||
opsIDBytes[i] = alphaNumericTable[opsIDBytes[i]%alphaNumericTableLen]
|
||||
}
|
||||
return string(opsIDBytes)
|
||||
return mustGetUUID()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user