Coverity 1545174: calling risky function
authorPauli <pauli@openssl.org>
Thu, 28 Sep 2023 01:45:01 +0000 (11:45 +1000)
committerPauli <pauli@openssl.org>
Tue, 3 Oct 2023 08:03:40 +0000 (19:03 +1100)
commitd9395ec8897b8768265bf3fcbdd877a6c4cdcbc6
treeb1768de04cc37a5b9550b7e5098b2322967d01b7
parentdec12f23481036b492c7ca8d5590eb52cc35dab0
Coverity 1545174: calling risky function

Remove the call to rand() and replace with an xor-shift RNG.
There are no security implications to worry about here.  This RNG is
used during testing only.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/22211)

(cherry picked from commit eaf08794398ac3caaadffcfd670854bf51f610fa)
providers/implementations/rands/test_rng.c