From 78289c408d8baf7a8ce5880dc71fe118912b5d02 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 10 Jul 2018 15:18:19 +0900 Subject: [PATCH] fix compile error --- sample/bls_sig.cpp | 11 ++--------- sample/large.cpp | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/sample/bls_sig.cpp b/sample/bls_sig.cpp index c574087..d75f7d4 100644 --- a/sample/bls_sig.cpp +++ b/sample/bls_sig.cpp @@ -8,14 +8,7 @@ */ #include - -#if CYBOZU_CPP_VERSION >= CYBOZU_CPP_VERSION_CPP11 -#include -std::random_device g_rg; -#else -#include -cybozu::RandomGenerator g_rg; -#endif +#include using namespace mcl::bn256; @@ -28,7 +21,7 @@ void Hash(G1& P, const std::string& m) void KeyGen(Fr& s, G2& pub, const G2& Q) { - s.setRand(g_rg); + s.setRand(); G2::mul(pub, Q, s); // pub = sQ } diff --git a/sample/large.cpp b/sample/large.cpp index 8c1c74c..60b2ac9 100644 --- a/sample/large.cpp +++ b/sample/large.cpp @@ -4,7 +4,7 @@ */ #include #include -#include +#include #include "../src/low_func.hpp" typedef mcl::FpT<> Fp;