forked from TrueCloudLab/frostfs-api-go
[#401] internal: Place randomization code in random package
Also replace seeding into `init` function. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
02e962f727
commit
c82dcf7e16
4 changed files with 22 additions and 19 deletions
|
@ -2,7 +2,7 @@ package sessiontest
|
|||
|
||||
import (
|
||||
acltest "github.com/nspcc-dev/neofs-api-go/v2/acl/test"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/internal"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/internal/random"
|
||||
refstest "github.com/nspcc-dev/neofs-api-go/v2/refs/test"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/session"
|
||||
statustest "github.com/nspcc-dev/neofs-api-go/v2/status/test"
|
||||
|
@ -167,7 +167,7 @@ func GenerateSessionTokenBody(empty bool) *session.TokenBody {
|
|||
m.SetOwnerID(refstest.GenerateOwnerID(false))
|
||||
m.SetLifetime(GenerateTokenLifetime(false))
|
||||
|
||||
switch internal.RandUint32(2) {
|
||||
switch random.Uint32(2) {
|
||||
case 0:
|
||||
m.SetContext(GenerateObjectSessionContext(false))
|
||||
case 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue