From d375dc91093527a57cdcb6383d6319a16579ad9e Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 29 May 2018 05:56:33 +0900 Subject: CSPRNG is not used in wasm --- src/bls_c.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/bls_c.cpp b/src/bls_c.cpp index 27de518..274babb 100644 --- a/src/bls_c.cpp +++ b/src/bls_c.cpp @@ -288,10 +288,12 @@ int blsHashToSecretKey(blsSecretKey *sec, const void *buf, mclSize bufSize) { return mclBnFr_setHashOf(&sec->v, buf, bufSize); } +#ifndef MCL_DONT_USE_CSPRNG int blsSecretKeySetByCSPRNG(blsSecretKey *sec) { return mclBnFr_setByCSPRNG(&sec->v); } +#endif int blsPublicKeySetHexStr(blsPublicKey *pub, const char *buf, mclSize bufSize) { return mclBnG2_setStr(&pub->v, buf, bufSize, 16); -- cgit v1.2.3