samedi 21 novembre 2020

Is RtlGenRandom (SystemFunction036) thread safe?

I will be generating rsa keys in a multi thread application. I use RtlGenRandom as RNG.

I know I can call in multi threads with hanging/crash or bugs.

My question is:

May calling RtlGenRandom in multiple threads give me duplicate bytes on each thread?

Please don't remind me to use CNG or cryptgenrandom as this answer says they all end up in bcryptPrimitives!AesRNG*.




Aucun commentaire:

Enregistrer un commentaire