frostfs-sdk-go/version/test/generate.go
Evgenii Stratonikov 3d0df0d068 [#54] tests: unify test generator names
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-12-01 10:34:54 +03:00

17 lines
257 B
Go

package versiontest
import (
"math/rand"
"github.com/nspcc-dev/neofs-sdk-go/version"
)
// Version returns random version.Version.
func Version() *version.Version {
x := version.New()
x.SetMajor(rand.Uint32())
x.SetMinor(rand.Uint32())
return x
}