From b44a8dd46c0c1d2ab7c352bc49b5cb7711cf23f6 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 11 Aug 2023 09:54:48 +0300 Subject: [PATCH] [#597] *: Fix linter warnings Signed-off-by: Evgenii Stratonikov --- cmd/frostfs-cli/modules/container/list.go | 1 + .../blobstor/internal/blobstortest/common.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/frostfs-cli/modules/container/list.go b/cmd/frostfs-cli/modules/container/list.go index 0e8ea7ad4..c8b891d32 100644 --- a/cmd/frostfs-cli/modules/container/list.go +++ b/cmd/frostfs-cli/modules/container/list.go @@ -63,6 +63,7 @@ var listContainersCmd = &cobra.Command{ continue } + cnrID := cnrID prmGet.ClientParams.ContainerID = &cnrID res, err := internalclient.GetContainer(cmd.Context(), prmGet) if err != nil { diff --git a/pkg/local_object_storage/blobstor/internal/blobstortest/common.go b/pkg/local_object_storage/blobstor/internal/blobstortest/common.go index 1f234198e..c08e39bf1 100644 --- a/pkg/local_object_storage/blobstor/internal/blobstortest/common.go +++ b/pkg/local_object_storage/blobstor/internal/blobstortest/common.go @@ -2,9 +2,9 @@ package blobstortest import ( "context" - "crypto/rand" mrand "math/rand" "testing" + "time" objectCore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/object" "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/blobstor/common" @@ -87,7 +87,8 @@ func NewObject(sz uint64) *objectSDK.Object { raw.SetContainerID(cidtest.ID()) payload := make([]byte, sz) - rand.Read(payload) + r := mrand.New(mrand.NewSource(time.Now().UnixNano())) + r.Read(payload) raw.SetPayload(payload) // fit the binary size to the required