Skip to content

Commit

Permalink
init rand.seed (#651)
Browse files Browse the repository at this point in the history
signed-off-by:[email protected]
  • Loading branch information
gasby88 authored and laizy committed Sep 17, 2018
1 parent 4d55776 commit 4175ad0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/utils/ont.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const (
ASSET_ONG = "ong"
)

func init() {
rand.Seed(time.Now().UnixNano())
}

//Return balance of address in base58 code
func GetBalance(address string) (*httpcom.BalanceOfRsp, error) {
result, ontErr := sendRpcRequest("getbalance", []interface{}{address})
Expand Down

0 comments on commit 4175ad0

Please sign in to comment.