2021-10-26 10:31:31 +00:00
|
|
|
package accountingtest
|
|
|
|
|
|
|
|
import (
|
|
|
|
"math/rand"
|
|
|
|
|
|
|
|
"github.com/nspcc-dev/neofs-sdk-go/accounting"
|
|
|
|
)
|
|
|
|
|
2021-11-12 11:19:16 +00:00
|
|
|
// Decimal returns random accounting.Decimal.
|
|
|
|
func Decimal() *accounting.Decimal {
|
2021-10-26 10:31:31 +00:00
|
|
|
d := accounting.NewDecimal()
|
|
|
|
d.SetValue(rand.Int63())
|
|
|
|
d.SetPrecision(rand.Uint32())
|
|
|
|
|
|
|
|
return d
|
|
|
|
}
|