crypto/mem.c: on Windows, use rand() instead of random()
authorRichard Levitte <levitte@openssl.org>
Tue, 27 Jun 2017 09:25:03 +0000 (11:25 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 28 Jun 2017 20:15:02 +0000 (22:15 +0200)
commitafe9bba749b9fd897b7e7d416d904852d867d2c2
tree5336e153fc3ddc912e74215a4a69e3eff90c9538
parenteed3ec90478af1e1fd3a2733293c751d2181f7f7
crypto/mem.c: on Windows, use rand() instead of random()

Windows doesn't provide random().  In this particular case, our
requirements on the quality of randomness isn't high, so we don't
need to care how good randomness rand() does or doesn't provide.

Fixes #3778

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3779)
crypto/mem.c