aboutsummaryrefslogtreecommitdiffstats
path: root/ManyFunctionsGenerator.py
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2015-02-17 20:28:58 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2015-02-17 20:28:58 +0800
commit20ed953910f5298b9b7852413ef916150646723b (patch)
tree663da23c19959f8c13826a55b7752164596f123e /ManyFunctionsGenerator.py
parentfc4a548d6f715a1502e0d5eff1b679e79f8cf243 (diff)
downloaddexon-solidity-20ed953910f5298b9b7852413ef916150646723b.tar
dexon-solidity-20ed953910f5298b9b7852413ef916150646723b.tar.gz
dexon-solidity-20ed953910f5298b9b7852413ef916150646723b.tar.bz2
dexon-solidity-20ed953910f5298b9b7852413ef916150646723b.tar.lz
dexon-solidity-20ed953910f5298b9b7852413ef916150646723b.tar.xz
dexon-solidity-20ed953910f5298b9b7852413ef916150646723b.tar.zst
dexon-solidity-20ed953910f5298b9b7852413ef916150646723b.zip
ManyFunctions performance test: replace xor with correct exp operator
Diffstat (limited to 'ManyFunctionsGenerator.py')
-rw-r--r--ManyFunctionsGenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ManyFunctionsGenerator.py b/ManyFunctionsGenerator.py
index 93eef784..b4f36af0 100644
--- a/ManyFunctionsGenerator.py
+++ b/ManyFunctionsGenerator.py
@@ -7,14 +7,14 @@ i = 1
template = """
function right{0}(uint seed) returns (uint) {{
var r = nextRand(seed);
- if (r >= 2^{2})
+ if (r >= 2**{2})
return right{1}(r);
return left{1}(r);
}}
function left{0}(uint seed) returns (uint) {{
var r = nextRand(nextRand(seed));
- if (r >= 2^{2})
+ if (r >= 2**{2})
return left{1}(r);
return right{1}(r);
}}