Hi,
I’m currently running the simplebootstrapping example in CKKS.
However, the random errors generated in CKKS are not fixed even I make the one in .h file to fixed
#include "utils/parallel.h"
#include "utils/prng/blake2engine.h"
#include <chrono>
#include <memory>
// #include <mutex>
#include <random>
#include <thread>
// #define FIXED_SEED // if defined, then uses a fixed seed number for
// reproducible results during debug. Use only one OMP thread to ensure
// reproducibility
namespace lbcrypto {
// Defines the PRNG implementation used by OpenFHE.
// The cryptographically secure PRNG used by OpenFHE is based on BLAKE2 hash
// functions. A user can replace it with a different PRNG if desired by defining
// the same methods as for the Blake2Engine class.
typedef Blake2Engine PRNG;
#define FIXED_SEED
It once worked when running bfv code, but I have no idea why it do not work with the CKKS part.
Thanks in advance.
Hi @wangantian ,
Please also make sure that you use the single-threaded setup. There are two options for this:
Compile with OpenMP support (ON by default) and then set the OMP_NUM_THREADS to 1, i.e.,
export OMP_NUM_THREADS=1
Compile w/o OpenMP support: set WITH_OPENMP to OFF when running cmake.