diff options
author | emkael <emkael@tlen.pl> | 2017-11-23 00:12:02 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-11-23 00:12:02 +0100 |
commit | be2ce04bc0fc1588ae53b45fe98f02ecdd76f6c4 (patch) | |
tree | 850996924fbd426f86b66901a3ecf84c545ba942 | |
parent | cd11b4099602f6d24ec7d61bffd6aa076af50455 (diff) |
Script to harvest sample data from original BigDeal binary:
* 1000000 deals in a single set, from single seed
* 1000000 deals in sets of 100 deals, from different seeds
-rwxr-xr-x | test.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +BIGDEALPATH=.. +DIRECTORY=$1 +SUFFIX=$2 +rm $DIRECTORY/*.dump +echo -n 'Generating 1000000 boards from a single seed' +$BIGDEALPATH/bigdealx$SUFFIX -h `cat entropy-bits/entropy00` -n 1000000 -p single 2>> $DIRECTORY/single.dump > /dev/null +echo '.' +echo -n 'Generating 100 boards each from 10000 seeds' +find entropy-bits -type f | while read ENTROPYFILE +do + $BIGDEALPATH/bigdealx$SUFFIX -h `cat $ENTROPYFILE` -n 100 -p multi 2>> $DIRECTORY/multiple.dump > /dev/null + echo -n '.' +done +echo |