aboutsummaryrefslogtreecommitdiff
path: root/src/exhaustive
diff options
context:
space:
mode:
authorJ08nY2018-06-30 16:21:12 +0200
committerJ08nY2018-06-30 16:21:12 +0200
commit3e4c87f12d13cd0a2d139cf8a149874634972afa (patch)
tree2f842fbea93e9aecfc539e40c1c1dea1aba228be /src/exhaustive
parente5066a307b62b7b64c91add8131d94aef3cfcf42 (diff)
downloadecgen-3e4c87f12d13cd0a2d139cf8a149874634972afa.tar.gz
ecgen-3e4c87f12d13cd0a2d139cf8a149874634972afa.tar.zst
ecgen-3e4c87f12d13cd0a2d139cf8a149874634972afa.zip
Diffstat (limited to 'src/exhaustive')
-rw-r--r--src/exhaustive/exhaustive.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c
index 28d464a..15b299a 100644
--- a/src/exhaustive/exhaustive.c
+++ b/src/exhaustive/exhaustive.c
@@ -15,6 +15,7 @@
#include "gen/hex.h"
#include "gen/order.h"
#include "gen/point.h"
+#include "gen/metadata.h"
#include "gen/seed.h"
#include "io/output.h"
#include "misc/config.h"
@@ -182,6 +183,12 @@ static void exhaustive_ginit(gen_f *generators) {
generators[OFFSET_CURVE] = &curve_gen_any;
}
+ if (cfg->metadata) {
+ generators[OFFSET_METADATA] = &metadata_gen;
+ } else {
+ generators[OFFSET_METADATA] = &gen_skip;
+ }
+
switch (cfg->points.type) {
case POINTS_RANDOM:
if (cfg->points.amount) {