From b9400c590f9204fc29919cce506af7bbacbb9052 Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 1 Mar 2021 18:50:09 +0200 Subject: [PATCH] use crypto/rand for bloom salt --- blockstore/splitstore/liveset_bloom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockstore/splitstore/liveset_bloom.go b/blockstore/splitstore/liveset_bloom.go index 57335e624..110dc6b81 100644 --- a/blockstore/splitstore/liveset_bloom.go +++ b/blockstore/splitstore/liveset_bloom.go @@ -1,7 +1,7 @@ package splitstore import ( - "math/rand" + "crypto/rand" "golang.org/x/xerrors" @@ -37,7 +37,7 @@ func (e *BloomLiveSetEnv) NewLiveSet(name string, sizeHint int64) (LiveSet, erro } salt := make([]byte, 4) - _, err := rand.Read(salt) //nolint + _, err := rand.Read(salt) if err != nil { return nil, xerrors.Errorf("error reading salt: %w", err) }