This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Description
I use OpenMP for parallel encrypting multiple plaintexts. However, after running for some time, the program crashes with
"getRandomBN: generate random big number error." This error is very weird since:
- It happens with OpenMP and does not happen when OpenMP is disabled.
- The error mysteriously disappears when I add some
std::cout codes in the function ippGenRandomBN for debugging. I don't know why the error could be related to std::cout.
- The error happens somewhat randomly, and before the error occurs, all computation is correct.
Finally, I was able to locate the error in the ippsTRNGenRDSEED function of the ipp-crypto lib. After I change the utils.hpp to force RNGenType kRNGenType = RNGenType::PSEUDO, the error seems to be resolved.