Skip to content
Commit f61f62ea authored by Dr. Matthias St. Pierre's avatar Dr. Matthias St. Pierre
Browse files

Use RAND_DRBG_bytes() for RAND_bytes() and RAND_priv_bytes()



The functions RAND_bytes() and RAND_priv_bytes() are now both based
on a common implementation using RAND_DRBG_bytes() (if the default
OpenSSL rand method is active). This not only simplifies the code
but also has the advantage that additional input from a high precision
timer is added on every generate call if the timer is available.

Reviewed-by: default avatarKurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/5251)
parent 1648338b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment