frostfs-sdk-go/version/test/generate.go

15 lines
238 B
Go

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