Skip to content

Switch the CSPRNG function from RAND_bytes() to uv_random()

Ondřej Surý requested to merge ondrej-use-uv_random into main

The RAND_bytes() implementation differs between the OpenSSL versions and uses the system entropy only for seeding its internal CSPRNG. The uv_random() on the other hand uses the system provided CSPRNG.

Switch from RAND_bytes() to uv_random() to use system provided CSPRNG.

Edited by Ondřej Surý

Merge request reports