aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-24 16:03:12 +0800
committerWei-Ning Huang <w@dexon.org>2019-01-24 16:03:12 +0800
commit3023a1b64afe9dd6e7ad2767a267148cc049fc9b (patch)
tree67a6325bd9d73fb9936907e39752f59d3b538a67
parent2ef5181871c067b9a85983ab83945e7889cb89a7 (diff)
downloaddexon-wiki-3023a1b64afe9dd6e7ad2767a267148cc049fc9b.tar
dexon-wiki-3023a1b64afe9dd6e7ad2767a267148cc049fc9b.tar.gz
dexon-wiki-3023a1b64afe9dd6e7ad2767a267148cc049fc9b.tar.bz2
dexon-wiki-3023a1b64afe9dd6e7ad2767a267148cc049fc9b.tar.lz
dexon-wiki-3023a1b64afe9dd6e7ad2767a267148cc049fc9b.tar.xz
dexon-wiki-3023a1b64afe9dd6e7ad2767a267148cc049fc9b.tar.zst
dexon-wiki-3023a1b64afe9dd6e7ad2767a267148cc049fc9b.zip
Updated On Chain Random Oracle (markdown)
-rw-r--r--On-Chain-Random-Oracle.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/On-Chain-Random-Oracle.md b/On-Chain-Random-Oracle.md
index d456101..627f406 100644
--- a/On-Chain-Random-Oracle.md
+++ b/On-Chain-Random-Oracle.md
@@ -39,11 +39,11 @@ The DEXON blockchain exposes this randomness source in Solidity with the `rand`
we added into EVM. The random number is calculated with the following formula:
```
-rand = Keccak( Randomness . Caller . Nonce . Gas )
+rand = Keccak( Randomness . Caller . Nonce . RandCallIndex )
```
* `Randomness` is the block randomness signed by DKG set, unique for each block.
* Note: `Randomness` field is not available in the initial round.
* `Caller` is the address of the contract caller.
* `Nonce` is the account nonce of the caller.
-* `Gas` current gas level. This ensures the random number is different each time when called. \ No newline at end of file
+* `RandCallIndex` number of times OP_RAND is called in the current transaction. \ No newline at end of file