Skip to content

Commit

Permalink
Update rand.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
juntao committed Apr 3, 2019
1 parent 0e53784 commit 623c820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rand.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ Example 1
}
}
You should NOT call `rand()` in a `view` or `pure` function. If the random number does not need to be recorded on the blockchain (i.e., outside of a transaction in a `view` function executed on a single node), it does not need to be generated by the blockchain. The calling application should simply generate a random number locally -- it is much cheaper in terms of resource consumption.
**Note** You should NOT call `rand()` in a `view` or `pure` function. If the random number does not need to be recorded on the blockchain (i.e., outside of a transaction in a `view` function executed on a single node), it does not need to be generated by the blockchain. The calling application should simply generate a random number locally -- it is much cheaper in terms of resource consumption.

0 comments on commit 623c820

Please sign in to comment.