summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-11-23 00:12:02 +0100
committeremkael <emkael@tlen.pl>2017-11-23 00:12:02 +0100
commitbe2ce04bc0fc1588ae53b45fe98f02ecdd76f6c4 (patch)
tree850996924fbd426f86b66901a3ecf84c545ba942
parentcd11b4099602f6d24ec7d61bffd6aa076af50455 (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-xtest.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..8703f56
--- /dev/null
+++ b/test.sh
@@ -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