2021-11-12 11:19:16 +00:00
|
|
|
package versiontest
|
2021-11-08 12:13:59 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|