[#161] *: Do not use math/rand.Read()

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-09-08 17:15:08 +03:00
parent aa12d8c6a6
commit 49ad985cad
15 changed files with 24 additions and 22 deletions

View file

@ -1,9 +1,10 @@
package session_test
import (
"crypto/rand"
"fmt"
"math"
"math/rand"
mrand "math/rand"
"testing"
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs"
@ -396,7 +397,7 @@ func TestContainer_AppliedTo(t *testing.T) {
func TestContainer_InvalidAt(t *testing.T) {
var x session.Container
nbf := rand.Uint64()
nbf := mrand.Uint64()
if nbf == math.MaxUint64 {
nbf--
}