From 489ef0cf31b0ef40257516213dbb80926c883e9d Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 5 Feb 2018 20:22:27 +0900 Subject: remove getRG() --- src/bls.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/bls.cpp') diff --git a/src/bls.cpp b/src/bls.cpp index 2e05f68..cc67186 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -5,7 +5,6 @@ http://opensource.org/licenses/BSD-3-Clause */ #include -#include #include #include #include @@ -20,13 +19,6 @@ using namespace mcl::bn384; #endif typedef std::vector FrVec; - -static cybozu::RandomGenerator& getRG() -{ - static cybozu::RandomGenerator rg; - return rg; -} - const std::vector *g_pQcoeff; const G2 *g_pQ; @@ -73,7 +65,7 @@ struct Polynomial { c.resize(k); c[0] = s; for (size_t i = 1; i < c.size(); i++) { - c[i].setRand(getRG()); + c[i].setRand(); } } // y = f(id) @@ -405,7 +397,7 @@ void SecretKey::setStr(const std::string& str, int ioMode) void SecretKey::init() { - getInner().s.setRand(getRG()); + getInner().s.setRand(); } void SecretKey::set(const uint64_t *p) -- cgit v1.2.3