diff options
author | Gav Wood <i@gavwood.com> | 2015-04-21 07:10:48 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-04-21 07:10:48 +0800 |
commit | dc9a49cc392c044b010e5536ef65c233bc8f34a7 (patch) | |
tree | 1ce162a7485347eb3e097157fcb4c58ac1891987 /ManyFunctionsGenerator.py | |
parent | fdc524377f169158c181e7c30d186deec857087d (diff) | |
parent | d3611017b80ff5abdec10b69c773cd013150bc13 (diff) | |
download | dexon-solidity-dc9a49cc392c044b010e5536ef65c233bc8f34a7.tar dexon-solidity-dc9a49cc392c044b010e5536ef65c233bc8f34a7.tar.gz dexon-solidity-dc9a49cc392c044b010e5536ef65c233bc8f34a7.tar.bz2 dexon-solidity-dc9a49cc392c044b010e5536ef65c233bc8f34a7.tar.lz dexon-solidity-dc9a49cc392c044b010e5536ef65c233bc8f34a7.tar.xz dexon-solidity-dc9a49cc392c044b010e5536ef65c233bc8f34a7.tar.zst dexon-solidity-dc9a49cc392c044b010e5536ef65c233bc8f34a7.zip |
Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop
Diffstat (limited to 'ManyFunctionsGenerator.py')
-rw-r--r-- | ManyFunctionsGenerator.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ManyFunctionsGenerator.py b/ManyFunctionsGenerator.py deleted file mode 100644 index b4f36af0..00000000 --- a/ManyFunctionsGenerator.py +++ /dev/null @@ -1,24 +0,0 @@ - -n = 100 - -splitNumBegin = 128 - (n / 2) -i = 1 - -template = """ - function right{0}(uint seed) returns (uint) {{ - var r = nextRand(seed); - 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}) - return left{1}(r); - return right{1}(r); - }} -""" - -for i in range(1, n): - print template.format(i, i + 1, i + splitNumBegin)
\ No newline at end of file |