From be2ce04bc0fc1588ae53b45fe98f02ecdd76f6c4 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 23 Nov 2017 00:12:02 +0100 Subject: 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 --- test.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test.sh 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 -- cgit v1.2.3