use crypto/rand for bloom salt
This commit is contained in:
parent
e612fff1fe
commit
b9400c590f
@ -1,7 +1,7 @@
|
|||||||
package splitstore
|
package splitstore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math/rand"
|
"crypto/rand"
|
||||||
|
|
||||||
"golang.org/x/xerrors"
|
"golang.org/x/xerrors"
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ func (e *BloomLiveSetEnv) NewLiveSet(name string, sizeHint int64) (LiveSet, erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
salt := make([]byte, 4)
|
salt := make([]byte, 4)
|
||||||
_, err := rand.Read(salt) //nolint
|
_, err := rand.Read(salt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, xerrors.Errorf("error reading salt: %w", err)
|
return nil, xerrors.Errorf("error reading salt: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user