Add weak platform independent PRNG to test framework.
authorPauli <paul.dale@oracle.com>
Fri, 26 Jul 2019 02:56:01 +0000 (12:56 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 28 Jul 2019 23:16:22 +0000 (09:16 +1000)
commit7de305510a07729be3cc80a0fb10561732ee4f31
tree46f0bd26df9ee8468d6cb7669f6e71cecd088074
parente4a282fe030363a87d52d4a3214eb7490036015e
Add weak platform independent PRNG to test framework.

Implement the GNU C library's random(3) pseudorandom number generator.
The algorithm is described: https://www.mscs.dal.ca/~selinger/random/

The rationale is to make the tests repeatable across differing platforms with
different underlying implementations of the random(3) library call.

More specifically: when executing tests with random ordering.

[extended tests]

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9463)

(cherry picked from commit e9a5932d04f6b7dd25b39a8ff9dc162d64a78c22)
test/build.info
test/testutil.h
test/testutil/driver.c
test/testutil/random.c [new file with mode: 0644]