Coverity 1545174: calling risky function
authorPauli <pauli@openssl.org>
Thu, 28 Sep 2023 01:45:01 +0000 (11:45 +1000)
committerPauli <pauli@openssl.org>
Mon, 2 Oct 2023 08:18:21 +0000 (19:18 +1100)
commiteaf08794398ac3caaadffcfd670854bf51f610fa
tree74f6c0aeef05d307fe2cf06bca7dc05935ae73fa
parent15410839c668f97b5c03ee1a1bc1a2bf4315715f
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)
providers/implementations/rands/test_rng.c