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 {
|
2022-03-12 16:15:26 +00:00
|
|
|
var d accounting.Decimal
|
2021-10-26 10:31:31 +00:00
|
|
|
d.SetValue(rand.Int63())
|
|
|
|
d.SetPrecision(rand.Uint32())
|
|
|
|
|
2022-03-12 16:15:26 +00:00
|
|
|
return &d
|
2021-10-26 10:31:31 +00:00
|
|
|
}
|