c - Make openssl RSA algorithm deterministic -
i trying compile program using openssl emscripten returning bogus keys. key rsa_generate_key() returns same every time, when given same seed, can test might going wrong. i have tried replacing rand_poll own implementation adds same numbers pool , have defined getpid_is_meaningless . what else need remove/disable/replace? testcase appreciated. thanks i want test other parts of program key rsa_generate_key() returns same every time, when given same seed. simply call rsa_generate_key() once, , dump result text file. then, create temporary constants , hard code keys , result calling rsa_generate_key() , replace calls rsa_generate_key() hardcoded constants. furthermore, when done uncomment calls rsa_generate_key() , comment out of constants. alternatively, "define wrapper around rsa key generation , return constant values. have 1 code location needs fixing later." - duncan jones.