frostfs-sdk-go/version/test/generate.go
Evgenii Stratonikov 74a5254819 [#59] audit/test: reuse version generator
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-11-09 12:30:58 +03:00

17 lines
250 B
Go

package test
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
}