Perform curve parameter initialization at start of gtest suite.

This commit is contained in:
Sean Bowe
2016-08-18 12:15:08 -06:00
parent ea92aba9fe
commit ae6b333c75
3 changed files with 7 additions and 4 deletions

View File

@@ -35,7 +35,6 @@ void test_value_equals(uint64_t i) {
TEST(circuit, values)
{
default_r1cs_ppzksnark_pp::init_public_params();
typedef Fr<default_r1cs_ppzksnark_pp> FieldT;
test_value_equals<FieldT>(0);
test_value_equals<FieldT>(1);
@@ -162,7 +161,6 @@ TEST(circuit, merkle_tree_gadget_weirdness)
behavior.
*/
default_r1cs_ppzksnark_pp::init_public_params();
typedef Fr<default_r1cs_ppzksnark_pp> FieldT;
// Test the normal case