Fix rand_lib.c for no-engine configuration
authorRichard Levitte <levitte@openssl.org>
Fri, 7 Apr 2017 14:26:10 +0000 (16:26 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 7 Apr 2017 14:33:39 +0000 (16:33 +0200)
commit2f881d2d9065342454fe352eac9e835cefa0ba90
treecacff49702cb6eae92dce1fef43fba9e0a4ad16a
parenta273157a3e10930b52b30e0ee39552eaf2a56e17
Fix rand_lib.c for no-engine configuration

When configured no-engine, we still refered to rand_engine_lock.
Rework the lock init code to avoid that.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3145)
crypto/rand/rand_lib.c