[#1689] go.mod: Bump SDK version
* Fix `APEOverride` method usage in ape checker. * Fix linter errors: factor out deprecated methods and packages. Change-Id: I8c939f4c58c2a4e3c4e795c7224d935d40ce6f24 Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
652237500f
commit
8e2f919df0
9 changed files with 55 additions and 52 deletions
|
@ -1,8 +1,10 @@
|
|||
package internal
|
||||
|
||||
import (
|
||||
cryptorand "crypto/rand"
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/checksum"
|
||||
cid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/id"
|
||||
|
@ -14,14 +16,13 @@ import (
|
|||
usertest "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/user/test"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/version"
|
||||
"git.frostfs.info/TrueCloudLab/tzhash/tz"
|
||||
"golang.org/x/exp/rand"
|
||||
)
|
||||
|
||||
func GeneratePayloadPool(count uint, size uint) [][]byte {
|
||||
var pool [][]byte
|
||||
for range count {
|
||||
payload := make([]byte, size)
|
||||
_, _ = rand.Read(payload)
|
||||
_, _ = cryptorand.Read(payload)
|
||||
|
||||
pool = append(pool, payload)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue